Skip to content
Commit 04f0fd64 authored by Rajalakshmi Srinivasaraghavan's avatar Rajalakshmi Srinivasaraghavan
Browse files

powerpc: Improve strcmp performance for shorter strings

For strings >16B and <32B existing algorithm takes more time than default
implementation when strings are placed closed to end of page. This is due
to byte by byte access for handling page cross. This is improved by
following >32B code path where the address is adjusted to aligned memory
before doing load doubleword operation instead of loading bytes.

Tested on powerpc64 and powerpc64le.
parent dcd4cd57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment