Function qt_core::q_next_power_of_two_u64
source · pub unsafe fn q_next_power_of_two_u64(v: u64) -> u64
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^63 it returns 0.
Calls C++ function: quint64 qNextPowerOfTwo(quint64 v)
.
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^63 it returns 0.
This function was introduced in Qt 5.4.