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)
pure nothrow @
safe
@
nogc
int
nextPowerOf2
(
int
i
)
out (result) { assert (isPowerOf2(result)); }
long
nextPowerOf2
(long i)
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.