pub unsafe fn q_next_power_of_two_u32(v: u32) -> u32
Expand description

This function returns the nearest power of two greater than value. For 0 it returns 1, and for values larger than or equal to 2^31 it returns 0.

Calls C++ function: quint32 qNextPowerOfTwo(quint32 v).

C++ documentation:

This function returns the nearest power of two greater than value. For 0 it returns 1, and for values larger than or equal to 2^31 it returns 0.

This function was introduced in Qt 5.4.