This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Create fcn for lossless conversion of NV to IV
authorKarl Williamson <khw@cpan.org>
Sun, 28 Apr 2019 23:42:44 +0000 (17:42 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 24 May 2019 23:09:30 +0000 (17:09 -0600)
commit3a019afd6f6291c3249c254b5c01e244e4ec83ab
tree290e919ac77aaf28cee53b4524606f3fb8714422
parent190e86d7a39dad04ad5d024fb42c0b8fefa68ebe
Create fcn for lossless conversion of NV to IV

Essentially the same code was being used in three places, and had
undefined C behavior for some inputs.

This consolidates the code into one inline function, and rewrites it to
avoid undefined behavior.
embed.fnc
embed.h
inline.h
pp.c
pp_hot.c
proto.h