Skip to content
Commit 23f0d816 authored by Amrita H S's avatar Amrita H S Committed by Peter Bergner
Browse files

powerpc: Optimized strncmp for power10



This patch is based on __strcmp_power10.

Improvements from __strncmp_power9:

    1. Uses new POWER10 instructions
       - This code uses lxvp to decrease contention on load
	 by loading 32 bytes per instruction.

    2. Performance implication
       - This version has around 38% better performance on average.
       - Minor performance regression is seen for few small sizes
	 and specific combination of alignments.

Signed-off-by: default avatarAmrita H S <amritahs@linux.ibm.com>
Reviewed-by: default avatarPeter Bergner <bergner@linux.ibm.com>
parent ea73eb5f
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