]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Handle worstcase behavior in strstr() for POWER7
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Tue, 18 Aug 2015 17:10:56 +0000 (22:40 +0530)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Tue, 25 Aug 2015 16:45:56 +0000 (13:45 -0300)
commitfe7faec3e56a8dd64f78023a2f4a74fc8d42e79f
tree242d3afd1b66ac57b75eaf8814f5e439971258c1
parent2194737e77256a847ed4fca7652e4dcb8d3f9c1e
powerpc: Handle worstcase behavior in strstr() for POWER7

Instead of checking needle length, constant 'n' number of comparisons
is checked to fall back to default implementation.  This patch is tested
on powerpc64 and powerpc64le.

2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>

* sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
ChangeLog
sysdeps/powerpc/powerpc64/power7/strstr.S