diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2023-02-15 14:31:13 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2023-02-21 23:58:05 -0500 |
commit | 9296660b131d42f1b1f9c421040c5746d5c56989 (patch) | |
tree | d5b329ee4530cef5cac46153ad714faaf70a7e93 | |
parent | f70a0239490ebea25e50c61c01f945d8df41e92f (diff) | |
download | haskell-9296660b131d42f1b1f9c421040c5746d5c56989.tar.gz |
base: Correct @since annotation for FP<->Integral bit cast operations.
Fixes #22708
-rw-r--r-- | libraries/base/GHC/Float.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/base/GHC/Float.hs b/libraries/base/GHC/Float.hs index 6a04b2ed32..012de47689 100644 --- a/libraries/base/GHC/Float.hs +++ b/libraries/base/GHC/Float.hs @@ -1568,7 +1568,7 @@ is using CMM. -- | @'castWord32ToFloat' w@ does a bit-for-bit copy from an integral value -- to a floating-point value. -- --- @since 4.10.0.0 +-- @since 4.11.0.0 {-# INLINE castWord32ToFloat #-} castWord32ToFloat :: Word32 -> Float @@ -1581,7 +1581,7 @@ foreign import prim "stg_word32ToFloatzh" -- | @'castFloatToWord32' f@ does a bit-for-bit copy from a floating-point value -- to an integral value. -- --- @since 4.10.0.0 +-- @since 4.11.0.0 {-# INLINE castFloatToWord32 #-} castFloatToWord32 :: Float -> Word32 @@ -1595,7 +1595,7 @@ foreign import prim "stg_floatToWord32zh" -- | @'castWord64ToDouble' w@ does a bit-for-bit copy from an integral value -- to a floating-point value. -- --- @since 4.10.0.0 +-- @since 4.11.0.0 {-# INLINE castWord64ToDouble #-} castWord64ToDouble :: Word64 -> Double @@ -1608,7 +1608,7 @@ foreign import prim "stg_word64ToDoublezh" -- | @'castFloatToWord64' f@ does a bit-for-bit copy from a floating-point value -- to an integral value. -- --- @since 4.10.0.0 +-- @since 4.11.0.0 {-# INLINE castDoubleToWord64 #-} castDoubleToWord64 :: Double -> Word64 |