[PATCH, i386]: Use missing gcc math builtins
Uros Bizjak
uros.bizjak@kss-loka.si
Wed Jun 8 12:37:00 GMT 2005
Hello!
This patch enhances libc's mathinline.h header to use some missing builtins
(mainly rounding builtins) that were added during 4.0 timeframe.
2005-06-08 Uros Bizjak <uros@kss-loka.si>
* sysdeps/i386/fpu/bits/mathinline.h (__pow2): Define
using __builtin_ldexpl and __builtin_exp2l for GCC 4.0+.
(floor, floorf, floorl): Define using __builtin_floorl for GCC 4.0+.
(ceil, ceilf, ceill): Define using __builtin_ceill for GCC 4.0+.
(__ldexp_code): Define using __builtin_ldexpl for GCC 4.0+.
(rint, rintf, rintl): Don't define for GCC 4.0+.
(__lrint_code): Define using __builtin_lrintl for GCC 4.0+ with
__FAST_MATH__.
(__llrint_code): Define using __builtin_llrintl for GCC 4.0+ with
__FAST_MATH__.
Uros.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc.diff
Type: application/octet-stream
Size: 3684 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20050608/cfa5f932/attachment.obj>
More information about the Libc-alpha
mailing list