]> code.delx.au - gnu-emacs/commitdiff
* config.h.in (HAVE_LOGB, HAVE_FREXP): Add #undefs for the
authorJim Blandy <jimb@redhat.com>
Mon, 9 Aug 1993 06:04:14 +0000 (06:04 +0000)
committerJim Blandy <jimb@redhat.com>
Mon, 9 Aug 1993 06:04:14 +0000 (06:04 +0000)
configuration script to edit.
* floatfns.c (Flogb): Use HAVE_LOGB and HAVE_FREXP, instead of
assuming that all USG systems have FREXP.

src/config.in
src/floatfns.c

index dafb759749a1844ded987d476dfa8fa450459925..78635b080fb582606f6021a2a4a71a0eee164e21 100644 (file)
@@ -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
 
index 90a2186d3f62140271afd83d7f759c912c19ca7a..8f0515a84b57406d21bf2503d5f0f951e0666923 100644 (file)
@@ -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;