> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ISPOWEROF2

> ISPOWEROF2

# ISPOWEROF2

请勿使用；仅供内部使用。

## 语法

```cpp theme={null}
bool ISPOWEROF2(  
         size_t n  
)  
```

### 参数

*n*   \
类型：size\_t

请勿使用；仅供内部使用。

### 返回值

类型：bool

请勿使用；仅供内部使用。

## 备注

请勿使用；仅供内部使用。

若某个值是 2 的幂，则返回 true。有关详细信息，请参阅 [Rounding up to the next power of 2](https://stackoverflow.com/questions/466204/rounding-up-to-next-power-of-2)。

## 要求

**头文件：** xdsp.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[xdsp](/reference/audio/xdsp/xdsp_members)

[Game for Windows and the DirectX SDK 博客](https://walbourn.github.io/xdsp-h-digital-signal-processing-helper-functions/)


## Related topics

- [提交游戏概念](/zh-CN/publishing/game-publishing/publishing-processes/managed-creators/publishing-processes-game-concepts.md)
- [XBOX 服务用户特权的客户端使用](/zh-CN/services/xbox-services/fundamentals/identity/privileges/concepts/live-user-privileges-client.md)
- [每日滥用举报历史报告](/zh-CN/services/playfab/data-analytics/learn-data/reports/daily-abuse-reports-history-report.md)
- [访问增加的核心限制和其他 Azure 区域](/zh-CN/services/playfab/multiplayer/servers/identifying-and-increasing-core-limits.md)
- [PFMultiplayerServerAzureVmSize](/zh-CN/services/playfab/api-references/c/pfmultiplayerservertypes/enums/pfmultiplayerserverazurevmsize.md)
