diff options
author | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-01 19:24:03 +0000 |
commit | cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch) | |
tree | e0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/libmp/port/mpexp.c | |
parent | 226d80b8213821af0cbf092d1507c52b504fd368 (diff) | |
download | plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2 plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip |
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/libmp/port/mpexp.c')
-rw-r--r-- | src/libmp/port/mpexp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libmp/port/mpexp.c b/src/libmp/port/mpexp.c index 9ec067cb..995ba280 100644 --- a/src/libmp/port/mpexp.c +++ b/src/libmp/port/mpexp.c @@ -2,17 +2,17 @@ #include <mp.h> #include "dat.h" -// res = b**e -// -// knuth, vol 2, pp 398-400 +/* res = b**e */ +/* */ +/* knuth, vol 2, pp 398-400 */ enum { Freeb= 0x1, Freee= 0x2, - Freem= 0x4, + Freem= 0x4 }; -//int expdebug; +/*int expdebug; */ void mpexp(mpint *b, mpint *e, mpint *m, mpint *res) @@ -47,7 +47,7 @@ mpexp(mpint *b, mpint *e, mpint *m, mpint *res) tofree |= Freem; } - // skip first bit + /* skip first bit */ i = e->top-1; d = e->p[i]; for(bit = mpdighi; (bit & d) == 0; bit >>= 1) |