[PATCH] powerpc64le: Optimized strcat for POWER10Peter Bergner <bergner@linux.ibm.com>
Peter Bergner
bergner@linux.ibm.com
Mon Nov 11 16:27:54 GMT 2024
On 11/10/24 11:23 PM, MAHESH BODAPATI wrote:
> On 09/11/24 12:42 am, Peter Bergner wrote:
>> Why the limitation here and in the other files of this being guarded
>> by #ifdef __LITTLE_ENDIAN__ ? The strcat-power8.c optimization is not
>> guarded by that, so why the Power10 version? If it can be used on
>> big-endian too, then please remove the #ifdef tests and enable it
>> everywhere.
>
> strcat uses strlen and strcpy library functions and these functions are
> optimized for little endian so guarded with #ifdef __LITTLE_ENDIAN__ where
> as power8 versions of strlen and strcpy are optimized for both little
> endian and big endian.
Ah, right you are. It might be nice to get those to be endian agnostic,
but that is for another day and another patch.
Peter
More information about the Libc-alpha
mailing list