freebsd-dev/lib/libc/powerpc64
Brandon Bergren dd95b39235 [PowerPC64] Fix multiple issues in fpsetmask().
Building R exposed a problem in fpsetmask() whereby we were not properly
clamping the provided mask to the valid range.

R initilizes the mask by calling fpsetmask(~0) on FreeBSD. Since we
recently enabled precise exceptions, this was causing an immediate
SIGFPE because we were attempting to set invalid bits in the fpscr.

Properly limit the range of bits that can be set via fpsetmask().

While here, use the correct fp_except_t type instead of fp_rnd_t.

Reported by:	pkubaj (in IRC)
MFC after:	1 week
Sponsored by:	Tag1 Consulting, Inc.
2021-02-28 20:37:48 -06:00
..
gen [PowerPC64] Fix multiple issues in fpsetmask(). 2021-02-28 20:37:48 -06:00
softfloat
string [PowerPC64LE] Use a shared LIBC_ARCH for powerpc64le. 2020-09-23 00:21:51 +00:00
sys Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
_fpmath.h libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
arith.h [PowerPC64LE] Fix gdtoa configurations on LE. 2020-09-23 02:05:44 +00:00
gd_qnan.h
Makefile.inc [PowerPC] Implement VDSO timebase access on powerpc* 2020-09-08 03:00:31 +00:00
static_tls.h Fix initial exec TLS mode for dynamically loaded shared objects. 2019-03-29 17:52:57 +00:00
Symbol.map Remove MD __sys_* private symbols. 2018-12-05 00:46:09 +00:00
SYS.h Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00