SCCS-vsn: lib/libm/common_source/log.c 5.8
-static char sccsid[] = "@(#)log.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)log.c 5.8 (Berkeley) %G%";
#endif /* not lint */
#include <math.h>
#endif /* not lint */
#include <math.h>
*/
#if defined(vax) || defined(tahoe)
*/
#if defined(vax) || defined(tahoe)
-#define _IEEE 0
-#define TRUNC(x) (double) (float) (x)
+#define _IEEE 0
+#define TRUNC(x) x = (double) (float) (x)
-#define TRUNC(x) *(((int *) &x) + 1) &= 0xf8000000
-#define infnan(x) 0.0
+#define endian (((*(int *) &one)) ? 1 : 0)
+#define TRUNC(x) *(((int *) &x) + endian) &= 0xf8000000
+#define infnan(x) 0.0