This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][BZ #6803] Set errno for scalbln, scalbn


Hi,

this patch sets errno to ERANGE on overflow and underflow.
The corresponding tests in libm-test.inc are updated to check for errno, too.

Tested on S390/S390x.

ok to commit?

Bye

---
2014-04-23  Stefan Liebler  <stli@linux.vnet.ibm.com>

	[BZ #6803]
	* sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf):
	Set errno on underflow / overflow.
	* sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
	* sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
	* sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
	* sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
	* sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
	* math/libm-test.inc
	(scalbn_test_data): Add errno expectations.
	(scalbln_test_data): Likewise.
---

Attachment: patchglibc_math_errno_scalbln_scalbn
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]