mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
powerpc: Fix strncat ifunc selection
Correct hwcap usage in strncat introduced by commit
249dcdb71b
.
Tested on power7 and power8 systems
This commit is contained in:
parent
1432d38ea0
commit
808befbf9e
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-05-03 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
|
||||
|
||||
* sysdeps/powerpc/powerpc64/multiarch/strncat.c: Correct hwcap
|
||||
variable name.
|
||||
|
||||
2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #21391]
|
||||
|
|
|
@ -26,7 +26,7 @@ extern __typeof (strncat) __strncat_power7 attribute_hidden;
|
|||
extern __typeof (strncat) __strncat_power8 attribute_hidden;
|
||||
|
||||
libc_ifunc (strncat,
|
||||
(hwcap & PPC_FEATURE2_ARCH_2_07)
|
||||
(hwcap2 & PPC_FEATURE2_ARCH_2_07)
|
||||
? __strncat_power8
|
||||
: (hwcap & PPC_FEATURE_HAS_VSX)
|
||||
? __strncat_power7
|
||||
|
|
Loading…
Add table
Reference in a new issue