summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_get_long.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-20 09:07:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-20 09:07:35 (GMT)
commit88b282766104841d47f9878536605bc08ae4c599 (patch)
tree57406e965f588883b917e212fb93e93ac84f72cc /libtommath/bn_mp_get_long.c
parent7a4fe54c26332c21cd95b01cc07bd74714d060ae (diff)
downloadtcl-88b282766104841d47f9878536605bc08ae4c599.zip
tcl-88b282766104841d47f9878536605bc08ae4c599.tar.gz
tcl-88b282766104841d47f9878536605bc08ae4c599.tar.bz2
Further astyle formatting of libtommath. No functional changes.
Diffstat (limited to 'libtommath/bn_mp_get_long.c')
-rw-r--r--libtommath/bn_mp_get_long.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtommath/bn_mp_get_long.c b/libtommath/bn_mp_get_long.c
index ea9ac43..3fc7c35 100644
--- a/libtommath/bn_mp_get_long.c
+++ b/libtommath/bn_mp_get_long.c
@@ -26,14 +26,14 @@ unsigned long mp_get_long(const mp_int *a)
}
/* get number of digits of the lsb we have to read */
- i = MIN(a->used,(int)(((sizeof(unsigned long) * CHAR_BIT) + DIGIT_BIT - 1) / DIGIT_BIT)) - 1;
+ i = MIN(a->used, (int)(((sizeof(unsigned long) * CHAR_BIT) + DIGIT_BIT - 1) / DIGIT_BIT)) - 1;
/* get most significant digit of result */
- res = DIGIT(a,i);
+ res = DIGIT(a, i);
#if (ULONG_MAX != 0xffffffffuL) || (DIGIT_BIT < 32)
while (--i >= 0) {
- res = (res << DIGIT_BIT) | DIGIT(a,i);
+ res = (res << DIGIT_BIT) | DIGIT(a, i);
}
#endif
return res;