4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-03 21:45:51 +08:00
Siddhesh Poyarekar f44eee8f1b Improve strncmp for mutually misaligned inputs
The mutually misaligned inputs on aarch64 are compared with a simple
byte copy, which is not very efficient.  Enhance the comparison
similar to strcmp by loading a double-word at a time.  The peak
performance improvement (i.e. 4k maxlen comparisons) due to this on
the strncmp microbenchmark in glibc is as follows:

falkor: 3.5x (up to 72% time reduction)
cortex-a73: 3.5x (up to 71% time reduction)
cortex-a53: 3.5x (up to 71% time reduction)

All mutually misaligned inputs from 16 bytes maxlen onwards show
upwards of 15% improvement and there is no measurable effect on the
performance of aligned/mutually aligned inputs.
2018-07-13 13:27:54 +02:00
..
2018-01-17 11:47:26 -06:00
2018-06-26 10:19:12 +02:00
2017-12-07 11:54:11 +00:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:26 -06:00
2018-03-16 10:21:23 +01:00
2017-12-07 11:54:11 +00:00
2018-04-13 15:42:37 -04:00
2018-01-17 11:47:30 -06:00
2018-01-17 11:47:26 -06:00
2018-04-13 15:42:37 -04:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:45 -06:00
2017-11-29 11:25:45 -06:00
2017-11-29 11:25:46 -06:00
2017-11-29 11:25:46 -06:00