diff options
Diffstat (limited to 'libtommath/bn_reverse.c')
-rw-r--r-- | libtommath/bn_reverse.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libtommath/bn_reverse.c b/libtommath/bn_reverse.c index dc87a4e..c3e7cf2 100644 --- a/libtommath/bn_reverse.c +++ b/libtommath/bn_reverse.c @@ -17,20 +17,20 @@ /* reverse an array, used for radix code */ void -bn_reverse (unsigned char *s, int len) +bn_reverse(unsigned char *s, int len) { - int ix, iy; - unsigned char t; + int ix, iy; + unsigned char t; - ix = 0; - iy = len - 1; - while (ix < iy) { - t = s[ix]; - s[ix] = s[iy]; - s[iy] = t; - ++ix; - --iy; - } + ix = 0; + iy = len - 1; + while (ix < iy) { + t = s[ix]; + s[ix] = s[iy]; + s[iy] = t; + ++ix; + --iy; + } } #endif |