From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/libmp/port/mpdigdiv.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/libmp/port/mpdigdiv.c') diff --git a/src/libmp/port/mpdigdiv.c b/src/libmp/port/mpdigdiv.c index 4a73bb3a..723127e4 100644 --- a/src/libmp/port/mpdigdiv.c +++ b/src/libmp/port/mpdigdiv.c @@ -2,9 +2,9 @@ #include #include "dat.h" -// -// divide two digits by one and return quotient -// +/* */ +/* divide two digits by one and return quotient */ +/* */ void mpdigdiv(mpdigit *dividend, mpdigit divisor, mpdigit *quotient) { @@ -14,15 +14,15 @@ mpdigdiv(mpdigit *dividend, mpdigit divisor, mpdigit *quotient) hi = dividend[1]; lo = dividend[0]; - // return highest digit value if the result >= 2**32 + /* return highest digit value if the result >= 2**32 */ if(hi >= divisor || divisor == 0){ divisor = 0; *quotient = ~divisor; return; } - // at this point we know that hi < divisor - // just shift and subtract till we're done + /* at this point we know that hi < divisor */ + /* just shift and subtract till we're done */ q = 0; x = divisor; for(i = Dbits-1; hi > 0 && i >= 0; i--){ -- cgit v1.2.3