psd-d v0.6.0 (2021-09-15T15:58:46Z)
Dub
Repo
isPowerOfTwo
utils
Returns whether the specified value is a power of two
pragma(
inline
, true)
bool
isPowerOfTwo
(
T
)
(
T
x
)
if
(
isIntegral
!
T
)
Meta
Source
See Implementation
utils
modules
io
functions
isPowerOfTwo
roundDownToMultiple
roundUpToMultiple
Returns whether the specified value is a power of two