[PATCH][libm] Replace global constants with preprocessor defines
Florian Weimer
fweimer@redhat.com
Tue Jan 8 09:20:00 GMT 2013
On 12/26/2012 08:45 AM, Siddhesh Poyarekar wrote:
> A lot of constants (including 1.0 and 0.0) are encoded as `struct
> number`. This adds an extra dereference in the code and hence makes
> it slower.
This might have been done to cut down constant pool references on RISC
CPUs (ppc64 might qualify). Hopefully, current GCC can perform this
optimization where beneficial.
--
Florian Weimer / Red Hat Product Security Team
More information about the Libc-alpha
mailing list