Skip to content

wordsForBits

wordsForBits(bits, width): number

Defined in: packages/core/src/number/bit/words-for-bits.ts:9

Minimum number of words required to hold bits bits, given a word width of width bits.

number

The number of bits to fit, non-negative.

number

The width of a word in bits, positive.

number

⌈bits / width⌉.