pixelperfectengine v0.10.0-beta.1 (2021-05-16T17:51:01Z)
Dub
Repo
nextPow2
PixelPerfectEngine
system
etc
From "Hackers Delight" val remains unchanged if it is already a power of 2.
pure @
safe
@
nogc
nothrow
T
nextPow2
(
T
)
(
T
val
)
Meta
Source
See Implementation
PixelPerfectEngine
system
etc
functions
clamp
cmpObjPtr
csvParser
hashCalc
intToHex
intToOct
isInteger
isInterface
isPowerOf2
max
min
nextPow2
parseDec
parseHex
parseOct
reinterpretCast
reinterpretGet
stringArrayConv
stringArrayJoin
toStream
From "Hackers Delight" val remains unchanged if it is already a power of 2.