This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Prefer NV instead of long double.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 3 Feb 2015 23:20:40 +0000 (18:20 -0500)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 4 Feb 2015 13:47:22 +0000 (08:47 -0500)
commita57d3d4daf4971adfdd5495458434fbba9257efe
treeb586809f5ecf86ee5bb6d2d405b6d00f8cdb45c4
parentdb0562f0f6a78b868db85f5ec10f73940b254224
Prefer NV instead of long double.

Background: sprintf aka sv_vcatpvn_flags uses a long double for
floating point values whenever has-long-double, not only when
use-long-double.  The (only?) reason for this is being able to
(perlio) printf long doubles from XS, even if no use-long-double.
(see ext/XS-APItest/t/printf.t)

Instead of casting the long double (explicitly or implicitly),
try keeping also an NV in sync, and using it.  Could probably
use the NV even more, but trying to stay minimal given the
impending 5.22.
sv.c