diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-17 17:54:20 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-17 17:55:37 +0200 |
commit | b62bd5ecf3be421778e4835010b6b334e95c5a56 (patch) | |
tree | e19e2efc012ec3940c4b4c739f0b1e8bcfed3eaf /rts/LdvProfile.c | |
parent | 3c2829017943522a946e7ae0560034c7d28d96ce (diff) | |
download | haskell-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 'rts/LdvProfile.c')
0 files changed, 0 insertions, 0 deletions