From 43c1a2173371a0325f12733413503a78442dccd0 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 16 Dec 2010 23:57:43 +0000 Subject: [PATCH] drop unused code in div64.h Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6189 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/x86/include/div64.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/arch/x86/include/div64.h b/src/arch/x86/include/div64.h index 3634f6dd14..bbc9921d29 100644 --- a/src/arch/x86/include/div64.h +++ b/src/arch/x86/include/div64.h @@ -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