summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-09-17 17:54:20 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-09-17 17:55:37 +0200
commitb62bd5ecf3be421778e4835010b6b334e95c5a56 (patch)
treee19e2efc012ec3940c4b4c739f0b1e8bcfed3eaf /includes
parent3c2829017943522a946e7ae0560034c7d28d96ce (diff)
downloadhaskell-b62bd5ecf3be421778e4835010b6b334e95c5a56.tar.gz
Implement `decodeDouble_Int64#` primop
The existing `decodeDouble_2Int#` primop is rather inconvenient to use (and in fact is not even used by `integer-gmp`) as the mantissa is split into 3 components which would actually fit in an `Int64#` value. However, `decodeDouble_Int64#` is to be used by the new `integer-gmp2` re-implementation (see #9281). Moreover, `decodeDouble_2Int#` performs direct bit-wise operations on the IEEE representation which can be replaced by a combination of the portable standard C99 `scalbn(3)` and `frexp(3)` functions. Differential Revision: https://phabricator.haskell.org/D160
Diffstat (limited to 'includes')
-rw-r--r--includes/stg/MiscClosures.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/stg/MiscClosures.h b/includes/stg/MiscClosures.h
index d2b933deb0..0d323e2db2 100644
--- a/includes/stg/MiscClosures.h
+++ b/includes/stg/MiscClosures.h
@@ -341,6 +341,7 @@ RTS_FUN_DECL(StgReturn);
RTS_FUN_DECL(stg_decodeFloatzuIntzh);
RTS_FUN_DECL(stg_decodeDoublezu2Intzh);
+RTS_FUN_DECL(stg_decodeDoublezuInt64zh);
RTS_FUN_DECL(stg_unsafeThawArrayzh);
RTS_FUN_DECL(stg_casArrayzh);