liberty-engine v0.0.14-beta.2 (2018-07-02T09:50:23Z)
Dub
Repo
nextPowerOf2
liberty
math
functions
Computes next power of 2.
int
nextPowerOf2
(int i)
long
nextPowerOf2
(long i)
pure nothrow @
safe
@
nogc
long
nextPowerOf2
(
long
i
)
out (result) { assert (isPowerOf2(result)); }
Meta
Source
See Implementation
liberty
math
functions
functions
clamp
degrees
fract
ilog2
inverseSqrt
isPowerOf2
lerp
lfloor
ltrunc
moduloWrap
nextPowerOf2
radians
safeAcos
safeAsin
sinOverX
smoothStep
step
Computes next power of 2.