summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_reduce_is_2k_l.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-15 14:44:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-09-15 14:44:00 (GMT)
commitd4e73bcab52ca3c76e007a1acc7cb76f50b8feb5 (patch)
tree4598f9d64ea232476fcf18bbef6bd413444c0c07 /libtommath/bn_mp_reduce_is_2k_l.c
parentce32fdecb2337a3ce69b0fb71295c46478019e86 (diff)
downloadtcl-d4e73bcab52ca3c76e007a1acc7cb76f50b8feb5.zip
tcl-d4e73bcab52ca3c76e007a1acc7cb76f50b8feb5.tar.gz
tcl-d4e73bcab52ca3c76e007a1acc7cb76f50b8feb5.tar.bz2
re-format everything through astyle. Taken from libtom/libtommath (pull request [https://github.com/libtom/libtommath/pull/85|85])
Diffstat (limited to 'libtommath/bn_mp_reduce_is_2k_l.c')
-rw-r--r--libtommath/bn_mp_reduce_is_2k_l.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libtommath/bn_mp_reduce_is_2k_l.c b/libtommath/bn_mp_reduce_is_2k_l.c
index 48b3498..d4804d5 100644
--- a/libtommath/bn_mp_reduce_is_2k_l.c
+++ b/libtommath/bn_mp_reduce_is_2k_l.c
@@ -19,7 +19,7 @@
int mp_reduce_is_2k_l(mp_int *a)
{
int ix, iy;
-
+
if (a->used == 0) {
return MP_NO;
} else if (a->used == 1) {
@@ -27,12 +27,12 @@ int mp_reduce_is_2k_l(mp_int *a)
} else if (a->used > 1) {
/* if more than half of the digits are -1 we're sold */
for (iy = ix = 0; ix < a->used; ix++) {
- if (a->dp[ix] == MP_MASK) {
- ++iy;
- }
+ if (a->dp[ix] == MP_MASK) {
+ ++iy;
+ }
}
return (iy >= (a->used/2)) ? MP_YES : MP_NO;
-
+
}
return MP_NO;
}