summaryrefslogtreecommitdiff
path: root/tests/t-constants.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-04-11 03:08:18 +0200
committerKevin Ryde <user42@zip.com.au>2002-04-11 03:08:18 +0200
commit8c8507588b8cd69b9a74614e5cf04aacbbf16995 (patch)
treede91be16b351609982f2e58c1ef79fafd2fcbfe1 /tests/t-constants.c
parent6108be09b7e1d9fb95586319c0dcec1a60044f84 (diff)
downloadgmp-8c8507588b8cd69b9a74614e5cf04aacbbf16995.tar.gz
(MP_BASES_BIG_BASE_INVERTED_10, MP_BASES_NORMALIZATION_STEPS_10): Only
check these under USE_PREINV_DIVREM_1.
Diffstat (limited to 'tests/t-constants.c')
-rw-r--r--tests/t-constants.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/t-constants.c b/tests/t-constants.c
index 1a348f707..ac6b3afed 100644
--- a/tests/t-constants.c
+++ b/tests/t-constants.c
@@ -269,12 +269,15 @@ main (int argc, char *argv[])
/* These defines are supposed to be the same as the table. */
CHECK_INT (MP_BASES_CHARS_PER_LIMB_10, __mp_bases[10].chars_per_limb);
CHECK_LIMB (MP_BASES_BIG_BASE_10, __mp_bases[10].big_base);
+
+#if USE_PREINV_DIVREM_1
CHECK_LIMB (MP_BASES_BIG_BASE_INVERTED_10, __mp_bases[10].big_base_inverted);
{
int normalization_steps_calc;
count_leading_zeros (normalization_steps_calc, __mp_bases[10].big_base);
CHECK_INT (MP_BASES_NORMALIZATION_STEPS_10, normalization_steps_calc);
}
+#endif
if (argc >= 2 || error)
{