ec_util_power_2
Last updated March 2020
Name
ec_util_power_2 — Round input to next highest power of 2 if it is not a power of 2
Synopsis
#include "util.h"
| INLINE uint32_t **ec_util_power_2** (
| x)
; | |
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
Round input to next highest power of 2 if it is not a power of 2.
- Integer
-
to round up.
Returns input rounded up to next highest power of 2.
Was this page helpful?