sexp_bignum_sqrt is only needed if SEXP_USE_MATH is enabled.

This commit is contained in:
ashinn 2013-03-23 21:16:21 +01:00
parent ec8255a27b
commit b16a214fee

View file

@ -477,6 +477,8 @@ sexp sexp_bignum_expt (sexp ctx, sexp a, sexp b) {
return sexp_bignum_normalize(res); return sexp_bignum_normalize(res);
} }
#if SEXP_USE_MATH
#define SEXP_MAX_ACCURATE_FLONUM_SQRT 1.12589990684262e15 /* 2^50 */ #define SEXP_MAX_ACCURATE_FLONUM_SQRT 1.12589990684262e15 /* 2^50 */
sexp sexp_bignum_sqrt (sexp ctx, sexp a) { /* Babylonian method */ sexp sexp_bignum_sqrt (sexp ctx, sexp a) { /* Babylonian method */
@ -515,6 +517,8 @@ sexp sexp_bignum_sqrt (sexp ctx, sexp a) { /* Babylonian method */
return sexp_bignum_normalize(res); return sexp_bignum_normalize(res);
} }
#endif /* SEXP_USE_MATH */
/************************ ratios ******************************/ /************************ ratios ******************************/
#if SEXP_USE_RATIOS #if SEXP_USE_RATIOS