> ## 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。如需詳細資訊,請參閱[無條件進位至下一個 2 的乘冪](https://stackoverflow.com/questions/466204/rounding-up-to-next-power-of-2)。

## 需求

**標頭:** xdsp.h

**支援的平台:** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[xdsp](/zh-TW/reference/audio/xdsp/xdsp_members)

[Game for Windows 和 DirectX SDK 部落格](https://walbourn.github.io/xdsp-h-digital-signal-processing-helper-functions/)


## Related topics

- [ISPOWEROF2](/reference/audio/xdsp/functions/ispowerof2.md)
- [Submit game concepts](/publishing/game-publishing/publishing-processes/managed-creators/publishing-processes-game-concepts.md)
- [Enviar conceptos de juego](/es/publishing/game-publishing/publishing-processes/managed-creators/publishing-processes-game-concepts.md)
- [提交游戏概念](/zh-CN/publishing/game-publishing/publishing-processes/managed-creators/publishing-processes-game-concepts.md)
- [게임 개념 제출](/ko/publishing/game-publishing/publishing-processes/managed-creators/publishing-processes-game-concepts.md)
