AtCoder.Internal.Bit
Contents
Description
Bit operations not in the Bits module.
Bits
>>> bitCeil 0 1 >>> bitCeil 1 1 >>> bitCeil 2 2 >>> bitCeil 3 4 >>> bitCeil 4 4
>>>
bitCeil 0
bitCeil 1
bitCeil 2
bitCeil 3
bitCeil 4
Since: 1.0.0
bitCeil :: Int -> Int #
\(O(w)\) Returns minimum \(2^i s.t. 2^i \geq n\).