powerpc: Use latest optimization for internal function calls

Message ID 1509704060-4301-1-git-send-email-raji@linux.vnet.ibm.com
State New
Headers show
Series
  • powerpc: Use latest optimization for internal function calls
Related show

Commit Message

Rajalakshmi Srinivasaraghavan Nov. 3, 2017, 10:14 a.m.
Update strcasestr-power8 to use power8 version of strnlen for
calculating length.

2017-11-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>

	* sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
	Redefine STRNLEN as __strnlen_power8.
---
 sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tulio Magno Quites Machado Filho Nov. 6, 2017, 7:27 p.m. | #1
Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> writes:

> Update strcasestr-power8 to use power8 version of strnlen for
> calculating length.
>
> 2017-11-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
>
> 	* sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
> 	Redefine STRNLEN as __strnlen_power8.

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>

Patch

diff --git a/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S b/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S
index 61025ce5a2..2fbf8a9143 100644
--- a/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S
+++ b/sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S
@@ -26,7 +26,7 @@ 
 /* strlen is used to calculate len of r4.  */
 #define STRLEN __strlen_power8
 /* strnlen is used to check if len of r3 is more than r4.  */
-#define STRNLEN __strnlen_power7
+#define STRNLEN __strnlen_power8
 /* strchr is used to check if first char of r4 is present in r3.  */
 #define STRCHR __strchr_power8