no GMP compilation

This commit is contained in:
Vítor Santos Costa 2013-09-06 23:03:24 +01:00
parent 11282b44d7
commit d1ff57b178
2 changed files with 5 additions and 0 deletions

View File

@ -269,9 +269,11 @@ p_logsum( USES_REGS1 )
} else if (IsIntegerTerm(t1)) {
f1 = IntegerOfTerm(t1);
done = TRUE;
#if USE_GMP
} else if (IsBigIntTerm(t1)) {
f1 = Yap_gmp_to_float(t1);
done = TRUE;
#endif
} else {
while (!(t1 = Eval(t1 PASS_REGS))) {
if (LOCAL_Error_TYPE == RESOURCE_ERROR_STACK) {
@ -295,9 +297,11 @@ p_logsum( USES_REGS1 )
} else if (IsIntegerTerm(t2)) {
f2 = IntegerOfTerm(t2);
done = TRUE;
#if USE_GMP
} else if (IsBigIntTerm(t2)) {
f2 = Yap_gmp_to_float(t2);
done = TRUE;
#endif
} else {
while (!(t2 = Eval(t2 PASS_REGS))) {
if (LOCAL_Error_TYPE == RESOURCE_ERROR_STACK) {

View File

@ -260,6 +260,7 @@ read_int_overflow(const char *s, Int base, Int val, int sign)
mpz_clear(new);
return t;
#else
CACHE_REGS
/* try to scan it as a float */
return MkIntegerTerm(val);
#endif