summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Klebinger <klebinger.andreas@gmx.at>2023-02-15 14:31:13 +0100
committerAndreas Klebinger <klebinger.andreas@gmx.at>2023-02-15 14:31:50 +0100
commit348181ddab0493575101784f1833834e03849643 (patch)
tree61920b0fbae2b7ef16c6627adb0c368d5ca7c460
parent9ca51f9e84abc41ba590203d8bc8df8d6af86db2 (diff)
downloadhaskell-wip/andreask/double2word.tar.gz
base: Correct @since annotation for FP<->Integral bit cast operations.wip/andreask/double2word
Fixes #22708
-rw-r--r--libraries/base/GHC/Float.hs8
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