[PATCH 1/3] math: Consolidate acosf and asinf internal tables
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Tue Feb 11 21:02:30 GMT 2025
On 10/02/25 17:55, Andreas K. Huettel wrote:
> Am Montag, 3. Februar 2025, 22:24:17 Mitteleuropäische Normalzeit schrieb Adhemerval Zanella:
>> The libm size improvement built with "--enable-stack-protector=strong
>> --enable-bind-now=yes --enable-fortify-source=2":
>>
>> From:
>>
>> text data bss dec hex filename
>> 587896 860 12 588768 8fbe0 aarch64-linux-gnu-master/math/libm.so
>> 963175 1068 12 964255 eb69f x86_64-linux-gnu-master/math/libm.so
>> 1191542 5544 368 1197454 12458e powerpc64le-linux-gnu-master/math/libm.so
>>
>> To:
>>
>> text data bss dec hex filename
>> 587304 860 12 588176 8f990 aarch64-linux-gnu/math/libm.so
>> 962855 1068 12 963935 eb55f x86_64-linux-gnu/math/libm.so
>> 1191222 5544 368 1197134 12444e powerpc64le-linux-gnu/math/libm.so
>>
>> The are not code changes for x86_64 and powerpc64le, but on aarch64
>> with gcc-14 I see a slight better code generation due the usage of
>> ldq for floating point constant loading.
>
>
> The b polynomial coefficients are different for asinf and acosf in the original.
> (And I see no changes in the polynomial itself.)
>
> If they can be changed like this, maybe add a remark why?
Because it is wrong, I will send a v2 with a correct consolidation.
More information about the Libc-alpha
mailing list