summaryrefslogtreecommitdiff
path: root/libraries/ghc-prim/changelog.md
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ghc-prim/changelog.md')
-rw-r--r--libraries/ghc-prim/changelog.md15
1 files changed, 13 insertions, 2 deletions
diff --git a/libraries/ghc-prim/changelog.md b/libraries/ghc-prim/changelog.md
index 2298846cd1..2a19164d58 100644
--- a/libraries/ghc-prim/changelog.md
+++ b/libraries/ghc-prim/changelog.md
@@ -1,4 +1,4 @@
-## 0.6.1
+## 0.6.1 (edit as necessary)
- Shipped with GHC 8.10.1
@@ -6,6 +6,17 @@
closureSize# :: a -> Int#
+- Added to `GHC.Prim`:
+ bitReverse# :: Word# -> Word#
+ bitReverse8# :: Word# -> Word#
+ bitReverse16# :: Word# -> Word#
+ bitReverse32# :: Word# -> Word#
+ bitReverse64# :: Word# -> Word#
+
+ `bitReverse#` is a primop that, for a `Word` of 8, 16, 32 or 64 bits,
+ reverses the order of its bits e.g. `0b110001` becomes `0b100011`.
+ These primitives use optimized machine instructions when available.
+
## 0.6.0
- Shipped with GHC 8.8.1
@@ -14,7 +25,7 @@
traceBinaryEvent# :: Addr# -> Int# -> State# s -> State# s
-## 0.5.3 (edit as necessary)
+## 0.5.3
- Shipped with GHC 8.6.1