diff options
Diffstat (limited to 'libc/private/bionic_asm.h')
-rw-r--r-- | libc/private/bionic_asm.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/private/bionic_asm.h b/libc/private/bionic_asm.h index 6409563f2..d18f0fc42 100644 --- a/libc/private/bionic_asm.h +++ b/libc/private/bionic_asm.h @@ -83,4 +83,15 @@ .globl alias; \ .equ alias, original +/* For arm-optimized-routines */ +#define L(l) .L ## l +#ifdef __ILP32__ + /* Sanitize padding bits of pointer arguments as per aapcs64 */ +#define PTR_ARG(n) mov w##n, w##n +#define SIZE_ARG(n) mov w##n, w##n +#else +#define PTR_ARG(n) +#define SIZE_ARG(n) +#endif + #endif |