Author: stepan Date: Fri Dec 17 00:57:43 2010 New Revision: 6189 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6189
Log: drop unused code in div64.h
Signed-off-by: Stefan Reinauer stepan@coreboot.org Acked-by: Stefan Reinauer stepan@coreboot.org
Modified: trunk/src/arch/x86/include/div64.h
Modified: trunk/src/arch/x86/include/div64.h ============================================================================== --- trunk/src/arch/x86/include/div64.h Fri Dec 17 00:57:00 2010 (r6188) +++ trunk/src/arch/x86/include/div64.h Fri Dec 17 00:57:43 2010 (r6189) @@ -27,25 +27,4 @@ __mod; \ })
-/* - * (long)X = ((long long)divs) / (long)div - * (long)rem = ((long long)divs) % (long)div - * - * Warning, this will do an exception if X overflows. - */ -#define div_long_long_rem(a,b,c) div_ll_X_l_rem(a,b,c) - -extern inline long -div_ll_X_l_rem(long long divs, long div, long *rem); - -extern inline long -div_ll_X_l_rem(long long divs, long div, long *rem) -{ - long dum2; - __asm__("divl %2":"=a"(dum2), "=d"(*rem) - : "rm"(div), "A"(divs)); - - return dum2; - -} #endif