unicode-data-0.1.0.1: Access Unicode character database
Copyright(c) 2020 Andrew Lelechenko
(c) 2020 Composewell Technologies
LicenseBSD-3-Clause
Maintainerstreamly@composewell.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Unicode.Internal.Bits

Description

Fast, static bitmap lookup utilities

Synopsis

Documentation

lookupBit64 :: Addr# -> Int -> Bool Source #

lookup64 addr index looks up the bit stored at bit index index using a bitmap starting at the address addr. Looks up the 64-bit word containing the bit and then the bit in that word. The caller must make sure that the 64-bit word at the byte address (addr + index / 64) * 8 is legally accessible memory.