# HG changeset patch # User Jim Blandy # Date 744876254 0 # Node ID 9352d7d021c29895c5dfee9d4bbcd4e860ace286 # Parent 56d7c4beae9f757061ee5ff3e3de1b2601c6f10a * 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. diff -r 56d7c4beae9f -r 9352d7d021c2 src/config.in --- a/src/config.in Mon Aug 09 05:56:29 1993 +0000 +++ b/src/config.in Mon Aug 09 06:04:14 1993 +0000 @@ -117,6 +117,8 @@ #undef HAVE_RMDIR #undef HAVE_RANDOM #undef HAVE_BCOPY +#undef HAVE_LOGB +#undef HAVE_FREXP #undef HAVE_AIX_SMT_EXP diff -r 56d7c4beae9f -r 9352d7d021c2 src/floatfns.c --- a/src/floatfns.c Mon Aug 09 05:56:29 1993 +0000 +++ b/src/floatfns.c Mon Aug 09 06:04:14 1993 +0000 @@ -635,7 +635,11 @@ 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 @@ 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;