summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_mp_reduce_setup.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_setup.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_setup.c')
-rw-r--r--libtommath/bn_mp_reduce_setup.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libtommath/bn_mp_reduce_setup.c b/libtommath/bn_mp_reduce_setup.c
index 8875698..00ff61c 100644
--- a/libtommath/bn_mp_reduce_setup.c
+++ b/libtommath/bn_mp_reduce_setup.c
@@ -18,14 +18,14 @@
/* pre-calculate the value required for Barrett reduction
* For a given modulus "b" it calulates the value required in "a"
*/
-int mp_reduce_setup (mp_int * a, mp_int * b)
+int mp_reduce_setup(mp_int *a, mp_int *b)
{
- int res;
-
- if ((res = mp_2expt (a, b->used * 2 * DIGIT_BIT)) != MP_OKAY) {
- return res;
- }
- return mp_div (a, b, a, NULL);
+ int res;
+
+ if ((res = mp_2expt(a, b->used * 2 * DIGIT_BIT)) != MP_OKAY) {
+ return res;
+ }
+ return mp_div(a, b, a, NULL);
}
#endif