37a38,46
> /* We provide our own version of isinf_sgn since the C99 standard
> * doesn't guarantee that isinf() returns the sign of the infinity
> * (most implementations do). */
> static inline int
> isinf_sgn(double x)
> {
> return isinf(x) ? (signbit(x) ? -1 : 1) : 0;
> }
>
51c60
< test_fp80_cvtd_inf(const char *name, fp80_t fin, int inf_class)
---
> test_fp80_cvtd_inf(const char *name, fp80_t fin, int expected_inf_class)
54c63
< if (isinf(d) != inf_class) {
---
> if (isinf_sgn(d) != expected_inf_class) {