summaryrefslogtreecommitdiff
path: root/mpz/cong_ui.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2010-11-22 22:26:05 +0100
committerTorbjorn Granlund <tege@gmplib.org>2010-11-22 22:26:05 +0100
commit198a1add0f2d556eb75bf2d85c7fceb9fafe9f51 (patch)
treec4fa3b97e983d3f057c0ba032faf39fe303d8f3b /mpz/cong_ui.c
parentd7afa9ea9c7dae166cb6719c3b11db9c96cca519 (diff)
downloadgmp-198a1add0f2d556eb75bf2d85c7fceb9fafe9f51.tar.gz
Whitespace cleanup.
Diffstat (limited to 'mpz/cong_ui.c')
-rw-r--r--mpz/cong_ui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/mpz/cong_ui.c b/mpz/cong_ui.c
index ee68c104b..a23be9c4e 100644
--- a/mpz/cong_ui.c
+++ b/mpz/cong_ui.c
@@ -42,9 +42,9 @@ mpz_congruent_ui_p (mpz_srcptr a, unsigned long cu, unsigned long du)
if (asize == 0)
{
if (cu < du)
- return cu == 0;
+ return cu == 0;
else
- return (cu % du) == 0;
+ return (cu % du) == 0;
}
/* For nails don't try to be clever if c or d is bigger than a limb, just
@@ -80,21 +80,21 @@ mpz_congruent_ui_p (mpz_srcptr a, unsigned long cu, unsigned long du)
{
r = mpn_mod_1 (ap, asize, d);
if (c < d)
- return r == c;
+ return r == c;
else
- return r == (c % d);
+ return r == (c % d);
}
if ((d & 1) == 0)
{
/* Strip low zero bits to get odd d required by modexact. If
- d==e*2^n then a==c mod d if and only if both a==c mod 2^n
- and a==c mod e. */
+ d==e*2^n then a==c mod d if and only if both a==c mod 2^n
+ and a==c mod e. */
- unsigned twos;
+ unsigned twos;
if ((ap[0]-c) & LOW_ZEROS_MASK (d))
- return 0;
+ return 0;
count_trailing_zeros (twos, d);
d >>= twos;