]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix avx2 strncmp offset compare condition check [BZ #25933]
authorSunil K Pandey <skpgkp1@gmail.com>
Fri, 12 Jun 2020 15:57:16 +0000 (08:57 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 4 Jul 2020 17:05:03 +0000 (10:05 -0700)
commit23db5555eb914c6a0228ecf5dc13c13be5d8dbd7
tree25bc74d71ad5954385951cb39ed83995fa42c107
parent21344a3d62a29406fddeec069ee4eb3c341369f9
Fix avx2 strncmp offset compare condition check [BZ #25933]

strcmp-avx2.S: In avx2 strncmp function, strings are compared in
chunks of 4 vector size(i.e. 32x4=128 byte for avx2). After first 4
vector size comparison, code must check whether it already passed
the given offset. This patch implement avx2 offset check condition
for strncmp function, if both string compare same for first 4 vector
size.

(cherry picked from commit 75870237ff3bb363447b03f4b0af100227570910)
sysdeps/x86_64/multiarch/strcmp-avx2.S