+2007-05-19 Bruno Haible <bruno@clisp.org>
+
+ * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
+ * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
+
2007-05-19 Bruno Haible <bruno@clisp.org>
* lib/float_.h: New file.
-# frexp.m4 serial 2
+# frexp.m4 serial 3
dnl Copyright (C) 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
return 1;
}
/* Test on infinite numbers. */
+ x = 1.0 / 0.0;
{
- x = 1.0 / 0.0;
int exp;
double y = frexp (x, &exp);
if (y != x)
-# frexpl.m4 serial 3
+# frexpl.m4 serial 4
dnl Copyright (C) 2007 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
{
volatile long double x;
/* Test on finite numbers. */
+ x = 16.0L;
{
int exp = -9999;
- x = 16.0L;
frexpl (x, &exp);
if (exp != 5)
return 1;
}
/* Test on infinite numbers. */
+ x = 1.0L / 0.0L;
{
- x = 1.0L / 0.0L;
int exp;
long double y = frexpl (x, &exp);
if (y != x)