diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-08 03:58:13 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-08 03:58:13 +0000 |
commit | f0d5c576f73efed254eaa77ad270afa6efe6026c (patch) | |
tree | 7a46da05a1c0500d06cbd54bc83987d280ea3ae2 /ldso/ldso/arm/dl-sysdep.h | |
parent | 4bc11d6cf8d28c890dc029fa9318cc0d3b6e870b (diff) |
macro out the /10 operation so arches can have their own versions ... and create some default macros for do_rem/do_div_10 so we dont duplicate the samething in many arch header files
Diffstat (limited to 'ldso/ldso/arm/dl-sysdep.h')
-rw-r--r-- | ldso/ldso/arm/dl-sysdep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ldso/ldso/arm/dl-sysdep.h b/ldso/ldso/arm/dl-sysdep.h index 194fd2eb7..839e9276f 100644 --- a/ldso/ldso/arm/dl-sysdep.h +++ b/ldso/ldso/arm/dl-sysdep.h @@ -43,6 +43,7 @@ static inline unsigned long arm_modulus(unsigned long m, unsigned long p) return m; } #define do_rem(result, n, base) ((result) = arm_modulus(n, base)) +#define do_div_10(result, remain) ((result) = (((result) - (remain)) / 2) * -(-1ul / 5ul)) /* Here we define the magic numbers that this dynamic loader should accept */ #define MAGIC1 EM_ARM |