diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2013-02-08 23:29:24 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2013-02-08 23:29:24 +0100 |
commit | 8a5c6a70b94eb71ef89da68c27f752e55630feb5 (patch) | |
tree | e5cae979c46a911d55c2fb2d6bf48697f2dfc0b6 /mini-gmp | |
parent | 3d35c791878818acf5e45bbae8e1bc38a95d1564 (diff) | |
download | gmp-8a5c6a70b94eb71ef89da68c27f752e55630feb5.tar.gz |
Whitespace cleanup.
Diffstat (limited to 'mini-gmp')
-rw-r--r-- | mini-gmp/tests/t-logops.c | 2 | ||||
-rw-r--r-- | mini-gmp/tests/t-signed.c | 2 | ||||
-rw-r--r-- | mini-gmp/tests/testutils.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/mini-gmp/tests/t-logops.c b/mini-gmp/tests/t-logops.c index 12521cf85..8ac93f614 100644 --- a/mini-gmp/tests/t-logops.c +++ b/mini-gmp/tests/t-logops.c @@ -93,7 +93,7 @@ testlogops (int count) } else { c = (~ (mp_bitcnt_t) 0) - 3; mpz_set_ui (res, 11 << ((i >> 3)%4)); /* set 3 bits */ - } + } if (mpz_popcount (res) + c != mpz_hamdist (a, b)) { diff --git a/mini-gmp/tests/t-signed.c b/mini-gmp/tests/t-signed.c index 21c907f77..3fe54a2fc 100644 --- a/mini-gmp/tests/t-signed.c +++ b/mini-gmp/tests/t-signed.c @@ -100,7 +100,7 @@ try_op_si (int c) break; oi = (si - c) * 2 + c; /* c * (2^K - 1) */ - mpz_mul_si (oz, sz, 2*c); + mpz_mul_si (oz, sz, 2*c); if (c == -1) mpz_ui_sub (oz, 1, oz); /* oz = sz * 2 + 1 */ else diff --git a/mini-gmp/tests/testutils.c b/mini-gmp/tests/testutils.c index 3881756a4..c4e08f2de 100644 --- a/mini-gmp/tests/testutils.c +++ b/mini-gmp/tests/testutils.c @@ -23,7 +23,7 @@ the GNU MP Library test suite. If not, see http://www.gnu.org/licenses/. */ works. */ #include "../mini-gmp.c" -static size_t total_alloc = 0; +static size_t total_alloc = 0; /* Custom memory allocation to track memory usage, and add a small red zone. @@ -129,7 +129,7 @@ testhalves (int count, void (*tested_fun) (int)) size_t initial_alloc; mp_get_memory_functions (&allocfunc, &reallocfunc, &freefunc); - initial_alloc = total_alloc; + initial_alloc = total_alloc; (*tested_fun) (count / 2); if (initial_alloc != total_alloc) { |