Commit 6d3c6adb authored by Jim Blandy's avatar Jim Blandy
Browse files

* config.h.in (HAVE_LOGB, HAVE_FREXP): Add #undefs for the

configuration script to edit.
* floatfns.c (Flogb): Use HAVE_LOGB and HAVE_FREXP, instead of
assuming that all USG systems have FREXP.
parent 3a0ce849
......@@ -117,6 +117,8 @@ and this notice must be preserved on all copies. */
#undef HAVE_RMDIR
#undef HAVE_RANDOM
#undef HAVE_BCOPY
#undef HAVE_LOGB
#undef HAVE_FREXP
#undef HAVE_AIX_SMT_EXP
......
......@@ -635,7 +635,11 @@ This is the same as the exponent of a float.")
int value;
double f = extract_float (arg);
#ifdef USG
#ifdef HAVE_LOGB
IN_FLOAT (value = logb (f), "logb", arg);
XSET (val, Lisp_Int, value);
#else
#ifdef HAVE_FREXP
{
int exp;
......@@ -643,8 +647,8 @@ This is the same as the exponent of a float.")
XSET (val, Lisp_Int, exp-1);
}
#else
IN_FLOAT (value = logb (f), "logb", arg);
XSET (val, Lisp_Int, value);
Well, what *do* you have?
#endif
#endif
return val;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment