From f0d5c576f73efed254eaa77ad270afa6efe6026c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 8 Mar 2006 03:58:13 +0000 Subject: 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 --- ldso/ldso/arm/dl-sysdep.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ldso/ldso/arm') 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 -- cgit v1.2.3