In perl.git, the branch smoke-me/jhi/hexfp has been created

<http://perl5.git.perl.org/perl.git/commitdiff/cd0a67ea9b388e88bfc7df7a951f4914a8ae6a64?hp=0000000000000000000000000000000000000000>

        at  cd0a67ea9b388e88bfc7df7a951f4914a8ae6a64 (commit)

- Log -----------------------------------------------------------------
commit cd0a67ea9b388e88bfc7df7a951f4914a8ae6a64
Author: Jarkko Hietaniemi <[email protected]>
Date:   Sat Aug 16 11:27:52 2014 -0400

    Separate the extraction of hex values.
    
    This way we can call it twice: first to count the size of output (and
    sanity check the extraction indices), and the second time to actually
    extract.  Otherwise with bad extraction code we will smash the stack.
    
    Furthermore, this makes for cleaner code since the large #ifdef forest
    (about differing long double formats, and different uv/nv/quad sizes)
    is moved within the helper function.
    
    Furthermore: IEEE 754 128-bit extraction was extracting wrong:
    we need only the mantissa bits, and in the right nybble order.
    
    Last but not least, handle the 'implicit bit' of IEEE 754 quadruple
    and double-double (but which is explicitly *not* in the 80-bit format).
    (If we handled the standard 64-bit format by explicit byte extraction,
    instead of frexp+ldexp the hidden bit would be needed there, too.)
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to