[Bug math/33576] Don't redirect inlined math functions
hjl.tools at gmail dot com
sourceware-bugzilla@sourceware.org
Fri Oct 24 06:22:42 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33576
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to H.J. Lu from comment #0)
> When a math function should be inlined, we shouldn't redirect it with:
>
> float (rintf) (float) asm ("__" "rint" "f");
>
> Instead
>
> 1. Include <math-use-builtins.h> in include/libc-symbols.h.
> 2. Change math-use-builtins-xxx.h to define
>
> #define USE_xxx_BUILTIN xxx
>
> if xxx should be inlined and define
>
> #define USE_xxx_BUILTIN no_xxx_builtin
>
> if xxx won't be inlined.
>
They should be swapped. Define
#define NO_xxx_BUILTIN xxx
if xxx won't be inlined and define
#define NO_xxx_BUILTIN no_xxx_builtin
if xxx should be inlined.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list