ec_util_power_2

March 26, 2020 Contributors

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); |   |

uint32_t <var class="pdparam">x</var>;

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.

Parameters

Integer

to round up.

Return Values

Returns input rounded up to next highest power of 2.