[Git][ghc/ghc][wip/andreask/double2word] base: Correct @since annotation for FP<->Integral bit cast operations.
Andreas Klebinger (@AndreasK)
gitlab at gitlab.haskell.org
Wed Feb 15 13:32:25 UTC 2023
Andreas Klebinger pushed to branch wip/andreask/double2word at Glasgow Haskell Compiler / GHC
Commits:
348181dd by Andreas Klebinger at 2023-02-15T14:31:50+01:00
base: Correct @since annotation for FP<->Integral bit cast operations.
Fixes #22708
- - - - -
1 changed file:
- libraries/base/GHC/Float.hs
Changes:
=====================================
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
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/348181ddab0493575101784f1833834e03849643
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/348181ddab0493575101784f1833834e03849643
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230215/a2b239a1/attachment-0001.html>
More information about the ghc-commits
mailing list