diff options
author | Wainer dos Santos Moschetta <wainersm@linux.vnet.ibm.com> | 2017-04-11 14:18:36 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2017-04-11 17:13:56 -0300 |
commit | b6a66222096c2c4a93818e86cda1aff1e37ee451 (patch) | |
tree | b72fb16b81941b5ee9b935beb5fac03f4536f20b /sysdeps/powerpc/powerpc64/multiarch | |
parent | 72fd128a08028488dbba13388dd38ec7fddd63f4 (diff) | |
download | glibc-b6a66222096c2c4a93818e86cda1aff1e37ee451.tar glibc-b6a66222096c2c4a93818e86cda1aff1e37ee451.tar.gz glibc-b6a66222096c2c4a93818e86cda1aff1e37ee451.tar.bz2 glibc-b6a66222096c2c4a93818e86cda1aff1e37ee451.zip |
powerpc: refactor memcmp and memmove 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/memcmp-power4.S: Define the
implementation-specific function name and remove unneeded
macros definition.
* sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
* sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
* sysdeps/powerpc/powerpc64/power4/memcmp.S: Set a default function
name if not defined and pass as parameter to macros accordingly.
* sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
* sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
Diffstat (limited to 'sysdeps/powerpc/powerpc64/multiarch')
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S | 16 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S | 16 | ||||
-rw-r--r-- | sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S | 16 |
3 files changed, 3 insertions, 45 deletions
diff --git a/sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S b/sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S index fa107f14a9..e38b2a9c44 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S +++ b/sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S @@ -18,21 +18,7 @@ #include <sysdep.h> -#undef EALIGN -#define EALIGN(name, alignt, words) \ - .section ".text"; \ - ENTRY_2(__memcmp_power4) \ - .align ALIGNARG(alignt); \ - EALIGN_W_##words; \ - BODY_LABEL(__memcmp_power4): \ - cfi_startproc; \ - LOCALENTRY(__memcmp_power4) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__memcmp_power4) \ - END_2(__memcmp_power4) +#define MEMCMP __memcmp_power4 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S b/sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S index 0fb597d5e1..a9cc979b92 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S @@ -18,21 +18,7 @@ #include <sysdep.h> -#undef EALIGN -#define EALIGN(name, alignt, words) \ - .section ".text"; \ - ENTRY_2(__memcmp_power7) \ - .align ALIGNARG(alignt); \ - EALIGN_W_##words; \ - BODY_LABEL(__memcmp_power7): \ - cfi_startproc; \ - LOCALENTRY(__memcmp_power7) - -#undef END -#define END(name) \ - cfi_endproc; \ - TRACEBACK(__memcmp_power7) \ - END_2(__memcmp_power7) +#define MEMCMP __memcmp_power7 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) diff --git a/sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S b/sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S index 46dddebf1d..a9435fa654 100644 --- a/sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S +++ b/sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S @@ -18,21 +18,7 @@ #include <sysdep.h> -#undef EALIGN -#define EALIGN(name, alignt, words) \ - .section ".text"; \ - ENTRY_2(__memmove_power7) \ - .align ALIGNARG(alignt); \ - EALIGN_W_##words; \ - BODY_LABEL(__memmove_power7): \ - cfi_startproc; \ - LOCALENTRY(__memmove_power7) - -#undef END_GEN_TB -#define END_GEN_TB(name, mask) \ - cfi_endproc; \ - TRACEBACK_MASK(__memmove_power7,mask) \ - END_2(__memmove_power7) +#define MEMMOVE __memmove_power7 #undef libc_hidden_builtin_def #define libc_hidden_builtin_def(name) |