diff options
author | Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com> | 2017-04-11 14:18:35 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2017-04-11 17:13:55 -0300 |
commit | ff06a55aef1a1826dadcebfee8baeaa10ce705a0 (patch) | |
tree | 36da2d7e166f6165abedca5413d0485749500b94 /sysdeps/powerpc/powerpc64/multiarch | |
parent | 18e0054bf7c57cb5e6b90961be167164d58b1098 (diff) | |
download | glibc-ff06a55aef1a1826dadcebfee8baeaa10ce705a0.tar.gz glibc-ff06a55aef1a1826dadcebfee8baeaa10ce705a0.tar.xz glibc-ff06a55aef1a1826dadcebfee8baeaa10ce705a0.zip |
powerpc: refactor memchr, memrchr, and rawmemchr IFUNC.
Clean up the IFUNC implementations for powerpc in order to remove unneeded macro definitions. Tested on ppc64le with and without --disable-multi-arch flag. * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Define the implementation-specific function name and remove unneeded macros definition. * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise. * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise. * sysdeps/powerpc/powerpc64/power7/memchr.S: Set a default function name if not defined and pass as parameter to macros accordingly. * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise. * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Likewise.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S | 15 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S | 15 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S | 15 |
3 files changed, 3 insertions, 42 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S b/sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S index 5d783abfcc..fedca9c997 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S @@ -18,20 +18,7 @@ #include <sysdep.h> -#undef ENTRY -#define ENTRY(name) \ - .section ".text"; \ - ENTRY_2(__memchr_power7) \ - .align ALIGNARG(2); \ - BODY_LABEL(__memchr_power7): \ - cfi_startproc; \ - LOCALENTRY(__memchr_power7) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__memchr_power7) \ - END_2(__memchr_power7) +#define MEMCHR __memchr_power7 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S b/sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S index 9ee6a3b90a..052aa732ba 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S @@ -18,20 +18,7 @@ #include <sysdep.h> -#undef ENTRY -#define ENTRY(name) \ - .section ".text"; \ - ENTRY_2(__memrchr_power7) \ - .align ALIGNARG(2); \ - BODY_LABEL(__memrchr_power7): \ - cfi_startproc; \ - LOCALENTRY(__memrchr_power7) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__memrchr_power7) \ - END_2(__memrchr_power7) +#define MEMRCHR __memrchr_power7 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S b/sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S index ad2fd80647..d79d72820c 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S @@ -18,19 +18,6 @@ #include <sysdep.h> -#undef ENTRY -#define ENTRY(name) \ - .section ".text"; \ - ENTRY_2(__rawmemchr_power7) \ - .align ALIGNARG(2); \ - BODY_LABEL(__rawmemchr_power7): \ - cfi_startproc; \ - LOCALENTRY(__rawmemchr_power7) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__rawmemchr_power7) \ - END_2(__rawmemchr_power7) +#define RAWMEMCHR __rawmemchr_power7 #include <sysdeps/powerpc/powerpc64/power7/rawmemchr.S> |