Optimize strcmp for powerpc64.
Data is loaded by double words and cmpb intruction is used to find '\0'.
Some performance gain rates between the current and the optimized solution:
String size (Bytes) | <=8 | <= 16 | 32 | 64 | 128 | 256 | 512 | 1024 |
---|---|---|---|---|---|---|---|---|
Gain rate | - | -0.81 % | 1.21 % | 3.32 % | 7.52 % | 14.86 % | 27.18 % | 42.08 % |
Gain rate (27/02/2019) | 0.59% | 1.92 % | 3.02 % | 5.60 % | 10.16 % | 18.05 % | 30.18 % | 42.82 % |