X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=include%2Fasm-i386%2Fdiv64.h;h=438e980068bd47dc64e0ccfccf5acb1761134e7c;hb=87b9ad070cf76c0f1e8cf836f7eb86e9ac94e34a;hp=28ed8b296afc137af6b3043179fc97eb230a2f54;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=safe%2Fjmp%2Flinux-2.6 diff --git a/include/asm-i386/div64.h b/include/asm-i386/div64.h index 28ed8b2..438e980 100644 --- a/include/asm-i386/div64.h +++ b/include/asm-i386/div64.h @@ -1,6 +1,8 @@ #ifndef __I386_DIV64 #define __I386_DIV64 +#include + /* * do_div() is NOT a C function. It wants to return * two values (the quotient and the remainder), but @@ -35,7 +37,7 @@ */ #define div_long_long_rem(a,b,c) div_ll_X_l_rem(a,b,c) -extern inline long +static inline long div_ll_X_l_rem(long long divs, long div, long *rem) { long dum2; @@ -45,4 +47,6 @@ div_ll_X_l_rem(long long divs, long div, long *rem) return dum2; } + +extern uint64_t div64_64(uint64_t dividend, uint64_t divisor); #endif