+2012-07-25 Marek Polacek <polacek@redhat.com>
+
+ [BZ #6808]
+ * math/libm-test.inc (yn_test): Add another test.
+ * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
+ to ERANGE when the result is +-Inf.
+ * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
+ * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
+ * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
+ * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
+
2012-07-24 Joseph Myers <joseph@codesourcery.com>
* conform/data/time.h-data (NULL): Use macro-constant. Require
* The following bugs are resolved with this release:
- 6778, 14042, 14151, 14154, 14157, 14173, 14283, 14328, 14331, 14337,
+ 6778, 6808, 14042, 14151, 14154, 14157, 14173, 14283, 14328, 14331, 14337,
14347, 14349
* Support for STT_GNU_IFUNC symbols added for s390 and s390x.
and FLT_MIN. See Bug 14173. */
TEST_ff_f (yn, 10, min_value, minus_infty, OVERFLOW_EXCEPTION);
+ errno = 0;
+ TEST_ff_f (yn, 10, min_value, minus_infty, OVERFLOW_EXCEPTION);
+ check_int ("errno for yn(10,-min) == ERANGE", errno, ERANGE, 0, 0, 0);
+
END (yn);
}
*
*/
+#include <errno.h>
#include <math.h>
#include <math_private.h>
GET_HIGH_WORD(high,b);
a = temp;
}
+ /* If B is +-Inf, set up errno accordingly. */
+ if (! __finite (b))
+ __set_errno (ERANGE);
}
if(sign>0) return b; else return -b;
}
* ====================================================
*/
+#include <errno.h>
#include <math.h>
#include <math_private.h>
GET_FLOAT_WORD(ib,b);
a = temp;
}
+ /* If B is +-Inf, set up errno accordingly. */
+ if (! __finitef (b))
+ __set_errno (ERANGE);
if(sign>0) return b; else return -b;
}
strong_alias (__ieee754_ynf, __ynf_finite)
*
*/
+#include <errno.h>
#include <math.h>
#include <math_private.h>
a = temp;
}
}
+ /* If B is +-Inf, set up errno accordingly. */
+ if (! __finitel (b))
+ __set_errno (ERANGE);
if (sign > 0)
return b;
else
*
*/
+#include <errno.h>
#include <math.h>
#include <math_private.h>
a = temp;
}
}
+ /* If B is +-Inf, set up errno accordingly. */
+ if (! __finitel (b))
+ __set_errno (ERANGE);
if (sign > 0)
return b;
else
*
*/
+#include <errno.h>
#include <math.h>
#include <math_private.h>
a = temp;
}
}
+ /* If B is +-Inf, set up errno accordingly. */
+ if (! __finitel (b))
+ __set_errno (ERANGE);
if (sign > 0)
return b;
else