Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ee780821
Commit
ee780821
authored
Sep 25, 2007
by
Simon Marlow
Browse files
document float2Int# and double2Int#
parent
63771284
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/prelude/primops.txt.pp
View file @
ee780821
...
...
@@ -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
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment