Safe Haskell | None |
---|---|
Language | Haskell2010 |
Word
Instances
Calculate the integer logarithm of a Word
to base 2.
The argument must be positive, otherwise an error is thrown.
8-bit unsigned integer type
Instances
16-bit unsigned integer type
Instances
byteSwap16 :: Word16 -> Word16 #
Swap bytes in Word16
.
Since: base-4.7.0.0
32-bit unsigned integer type
Instances
byteSwap32 :: Word32 -> Word32 #
Reverse order of bytes in Word32
.
Since: base-4.7.0.0
64-bit unsigned integer type
Instances
byteSwap64 :: Word64 -> Word64 #
Reverse order of bytes in Word64
.
Since: base-4.7.0.0