Implement `decodeDouble_Int64#` primop

Authored by hvr.

Description

Implement decodeDouble_Int64# primop

Summary:
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 Trac #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.

Test Plan: tested via integer-gmp2

Reviewers: simonmar, austin

Subscribers: simonmar, relrod, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D160

GHC Trac Issues: Trac #9281

Details

Committed
hvrAug 17 2014, 6:24 AM
Differential Revision
D160: Implement `decodeDouble_Int64#` primop
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Commit No Longer Exists

This commit no longer exists in the repository.