[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'round' modules takes 3
From: |
Bruno Haible |
Subject: |
Re: 'round' modules takes 3 |
Date: |
Sun, 21 Oct 2007 20:10:05 +0200 |
User-agent: |
KMail/1.5.4 |
On HP-UX 11:
> _Isnanf (first referenced in test-roundf1.o) (code)
> *** Error exit code 1
Since this occurs in the other twin modules as well, I fixed it:
2007-10-21 Bruno Haible <address@hidden>
* tests/test-floorf1.c: Include isnanf.h.
(main): Use isnanf() instead of isnan().
* tests/test-ceilf1.c: Include isnanf.h.
(main): Use isnanf() instead of isnan().
* tests/test-truncf1.c: Include isnanf.h.
(main): Use isnanf() instead of isnan().
* tests/test-roundf1.c: Include isnanf.h.
(main): Use isnanf() instead of isnan().
*** tests/test-ceilf1.c.orig 2007-10-21 20:06:01.000000000 +0200
--- tests/test-ceilf1.c 2007-10-21 20:05:41.000000000 +0200
***************
*** 23,28 ****
--- 23,30 ----
#include <stdio.h>
#include <stdlib.h>
+ #include "isnanf.h"
+
#define ASSERT(expr) \
do \
{ \
***************
*** 77,83 ****
ASSERT (ceilf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (ceilf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
! ASSERT (isnan (ceilf (NaN ())));
return 0;
}
--- 79,85 ----
ASSERT (ceilf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (ceilf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
! ASSERT (isnanf (ceilf (NaN ())));
return 0;
}
*** tests/test-floorf1.c.orig 2007-10-21 20:06:01.000000000 +0200
--- tests/test-floorf1.c 2007-10-21 20:05:41.000000000 +0200
***************
*** 23,28 ****
--- 23,30 ----
#include <stdio.h>
#include <stdlib.h>
+ #include "isnanf.h"
+
#define ASSERT(expr) \
do \
{ \
***************
*** 77,83 ****
ASSERT (floorf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (floorf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
! ASSERT (isnan (floorf (NaN ())));
return 0;
}
--- 79,85 ----
ASSERT (floorf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (floorf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
! ASSERT (isnanf (floorf (NaN ())));
return 0;
}
*** tests/test-roundf1.c.orig 2007-10-21 20:06:01.000000000 +0200
--- tests/test-roundf1.c 2007-10-21 20:05:41.000000000 +0200
***************
*** 25,30 ****
--- 25,32 ----
#include <stdio.h>
#include <stdlib.h>
+ #include "isnanf.h"
+
#define ASSERT(expr) \
do \
{ \
***************
*** 84,90 ****
ASSERT (roundf (1.0 / 0.0f) == 1.0 / 0.0f);
ASSERT (roundf (-1.0 / 0.0f) == -1.0 / 0.0f);
/* NaNs. */
! ASSERT (isnan (roundf (NaN ())));
return 0;
}
--- 86,92 ----
ASSERT (roundf (1.0 / 0.0f) == 1.0 / 0.0f);
ASSERT (roundf (-1.0 / 0.0f) == -1.0 / 0.0f);
/* NaNs. */
! ASSERT (isnanf (roundf (NaN ())));
return 0;
}
*** tests/test-truncf1.c.orig 2007-10-21 20:06:01.000000000 +0200
--- tests/test-truncf1.c 2007-10-21 20:05:41.000000000 +0200
***************
*** 23,28 ****
--- 23,30 ----
#include <stdio.h>
#include <stdlib.h>
+ #include "isnanf.h"
+
#define ASSERT(expr) \
do \
{ \
***************
*** 76,82 ****
ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
! ASSERT (isnan (truncf (NaN ())));
return 0;
}
--- 78,84 ----
ASSERT (truncf (1.0f / 0.0f) == 1.0f / 0.0f);
ASSERT (truncf (-1.0f / 0.0f) == -1.0f / 0.0f);
/* NaNs. */
! ASSERT (isnanf (truncf (NaN ())));
return 0;
}
- modules 'round', 'roundf', 'roundl' for review, Ben Pfaff, 2007/10/06
- Re: modules 'round', 'roundf', 'roundl' for review, Bruno Haible, 2007/10/07
- Re: modules 'round', 'roundf', 'roundl' for review, Ben Pfaff, 2007/10/07
- Re: modules 'round', 'roundf', 'roundl' for review, Bruno Haible, 2007/10/12
- 'round' modules takes 3 (was: Re: modules 'round', 'roundf', 'roundl' for review), Ben Pfaff, 2007/10/19
- Re: 'round' modules takes 3 (was: Re: modules 'round', 'roundf', 'roundl' for review), Bruno Haible, 2007/10/20
- Re: 'round' modules takes 3, Ben Pfaff, 2007/10/20
- Re: 'round' modules takes 3, Bruno Haible, 2007/10/21
- Re: 'round' modules takes 3,
Bruno Haible <=
- Re: 'round' modules takes 3, Ben Pfaff, 2007/10/21
- Re: 'round' modules takes 3, Ben Pfaff, 2007/10/21
- Re: 'round' modules takes 3, Bruno Haible, 2007/10/23
- Re: 'round' modules takes 3, Bruno Haible, 2007/10/28
- Re: 'round' modules takes 3, Ben Pfaff, 2007/10/28
- Re: 'round' modules takes 3, Bruno Haible, 2007/10/28
- Re: 'round' modules takes 3, Ralf Wildenhues, 2007/10/29
- Re: 'round' modules takes 3, Bruno Haible, 2007/10/29
Re: modules 'round', 'roundf', 'roundl' for review, Bruno Haible, 2007/10/07