libc/newlib/libm
Szabolcs Nagy 6a85e1a4e5 Change the return type of converttoint and document the semantics
The roundtoint and converttoint internal functions are only called with small
values, so 32 bit result is enough for converttoint and it is a signed int
conversion so the natural return type is int32_t.

The original idea was to help the compiler keeping the result in uint64_t,
then it's clear that no sign extension is needed and there is no accidental
undefined or implementation defined signed int arithmetics.

But it turns out gcc does a good job with inlining so changing the type has
no overhead and the semantics of the conversion is less surprising this way.
Since we want to allow the asuint64 (x + 0x1.8p52) style conversion, the top
bits were never usable and the existing code ensures that only the bottom
32 bits of the conversion result are used.

In newlib with default settings only aarch64 is affected and there is no
significant code generation change with gcc after the patch.
2018-07-06 10:29:01 +02:00
..
common Change the return type of converttoint and document the semantics 2018-07-06 10:29:01 +02:00
complex Add nvptx port. 2018-04-13 15:42:37 -04:00
machine Revert "Remove -fno-builtin to allow gcc to inline functions such as fabs, floor, creal, imag." 2018-06-26 10:17:04 +02:00
math New pow implementation 2018-06-27 15:40:49 +02:00
mathfp ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00
test ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00
Makefile.am Make newlib manpages (v3) 2016-07-04 14:17:10 +01:00
Makefile.in Bump release to 2.5.0 for yearly snapshot. 2016-12-22 21:33:54 -05:00
aclocal.m4 Fix libm regenerated files again. 2016-02-17 17:06:46 -05:00
config.h.in import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
configure Revert "Remove -fno-builtin to allow gcc to inline functions such as fabs, floor, creal, imag." 2018-06-26 10:17:04 +02:00
configure.in * libc/include/complex.h: New complex header. 2010-10-08 10:35:14 +00:00
libm.in.xml Make newlib manpages (v3) 2016-07-04 14:17:10 +01:00
libm.texinfo Fix versions in documentation (manually for now) 2017-01-09 16:22:02 +01:00