diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-09-25 12:11:39 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-09-25 12:11:39 +0000 |
commit | ee780821a6416a059edd978af340dc89d7447d63 (patch) | |
tree | 803abe9293c0fbc6715a0d832bf6ce4bd55f24ea /compiler/prelude/primops.txt.pp | |
parent | 63771284cf3d45a788ba1cfc9edb1d182168de2a (diff) | |
download | haskell-ee780821a6416a059edd978af340dc89d7447d63.tar.gz |
document float2Int# and double2Int#
Diffstat (limited to 'compiler/prelude/primops.txt.pp')
-rw-r--r-- | compiler/prelude/primops.txt.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/prelude/primops.txt.pp b/compiler/prelude/primops.txt.pp index 13ce30232a..335a717d45 100644 --- a/compiler/prelude/primops.txt.pp +++ b/compiler/prelude/primops.txt.pp @@ -545,6 +545,10 @@ primop DoubleDivOp "/##" Dyadic primop DoubleNegOp "negateDouble#" Monadic Double# -> Double# primop Double2IntOp "double2Int#" GenPrimOp Double# -> Int# + {Truncates a {\tt Double#} value to the nearest {\tt Int#}. + Results are undefined if the truncation if truncation yields + a value outside the range of {\tt Int#}.} + primop Double2FloatOp "double2Float#" GenPrimOp Double# -> Float# primop DoubleExpOp "expDouble#" Monadic @@ -652,6 +656,9 @@ primop FloatDivOp "divideFloat#" Dyadic primop FloatNegOp "negateFloat#" Monadic Float# -> Float# primop Float2IntOp "float2Int#" GenPrimOp Float# -> Int# + {Truncates a {\tt Float#} value to the nearest {\tt Int#}. + Results are undefined if the truncation if truncation yields + a value outside the range of {\tt Int#}.} primop FloatExpOp "expFloat#" Monadic Float# -> Float# |