diff options
author | Stefan Reinauer <stepan@coreboot.org> | 2010-12-16 23:57:43 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-12-16 23:57:43 +0000 |
commit | 43c1a2173371a0325f12733413503a78442dccd0 (patch) | |
tree | 62e78bb32b4e14981ef40f85e33deaed1ece8387 /src | |
parent | 0d3e12b51a6178c0039f224876ee283b59e8bdb6 (diff) | |
download | coreboot-43c1a2173371a0325f12733413503a78442dccd0.tar.xz |
drop unused code in div64.h
Signed-off-by: Stefan Reinauer <stepan@coreboot.org>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6189 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/include/div64.h | 21 |
1 files changed, 0 insertions, 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 |