In perl.git, the branch smoke-me/jhi/hexfp has been created
<http://perl5.git.perl.org/perl.git/commitdiff/217fd77b9ad13cd0604186df640099439adf5f62?hp=0000000000000000000000000000000000000000>
at 217fd77b9ad13cd0604186df640099439adf5f62 (commit)
- Log -----------------------------------------------------------------
commit 217fd77b9ad13cd0604186df640099439adf5f62
Author: Jarkko Hietaniemi <[email protected]>
Date: Sun Aug 17 13:51:01 2014 -0400
Comment tweaks.
M sv.c
commit b08e1c9b64352c88606f2aa5281fbc88a9be0ed8
Author: Jarkko Hietaniemi <[email protected]>
Date: Sun Aug 17 13:50:08 2014 -0400
Little-endian double-double detection was wrong.
M Configure
commit f7a48a8cf4bd1c2284879545eb4badd8d8c6faae
Author: Jarkko Hietaniemi <[email protected]>
Date: Sun Aug 17 10:00:06 2014 -0400
Add quadruple precision tests, verified by Craig Berry.
Also tentatively adding double-double tests, but those are probably bogus.
Also comment tweaks.
M sv.c
M t/op/sprintf2.t
commit cf4f60037a32b53dd09c94455f6d3684f353d717
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.)
M pod/perldiag.pod
M sv.c
-----------------------------------------------------------------------
--
Perl5 Master Repository