GHC.Utils.Containers.Internal.BitUtil

ghc-9.14.0.20251028: The GHC API

Copyright | (c) Clark Gaebel 2012 (c) Johan Tibel 2012
License | BSD-style
Maintainer | libraries@haskell.org
Portability | portable
Safe Haskell | None
Language | GHC2021

GHC.Utils.Containers.Internal.BitUtil

Description

Synopsis

- bitcount :: Int -> Word64 -> Int
- highestBitMask :: Word64 -> Word64
- shiftLL :: Word64 -> Int -> Word64
- shiftRL :: Word64 -> Int -> Word64

# Documentation

bitcount :: Int -> Word64 -> Int Source #

highestBitMask :: Word64 -> Word64 Source #

Return a word where only the highest bit is set.

shiftLL :: Word64 -> Int -> Word64 Source #

shiftRL :: Word64 -> Int -> Word64 Source #