ae v0.0.3186 (2022-07-03T09:06:15Z)
Home
Dub
Repo
bitsFor
ae
utils
math
Returns the number of bits needed to store a number up to n (inclusive).
ubyte
bitsFor
(
T
)
(
T
n
)
Meta
Source
See Implementation
ae
utils
math
modules
distribution
longmul
aliases
eq
flipBits
ge
gt
le
lt
ne
functions
average
between
bitsFor
bound
compare
ilog2
isPowerOfTwo
itpl
maximize
minimize
nextPowerOfTwo
op
rangeIntersection
roundUpToPowerOfTwo
sign
sort2
sqr
sum
swapBytes
templates
TypeForBits
binary
unary
Returns the number of bits needed to store a number up to n (inclusive).