1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00
freebsd/lib/libc/sparc64/fpu
Eitan Adler 7a22215c53 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
fpu_add.c
fpu_arith.h
fpu_compare.c
fpu_div.c Division should take both arguments' signs into account when the 2010-03-20 22:12:15 +00:00
fpu_emu.h Computations on NaNs are supposed to return one of the input NaNs unchanged. 2012-01-16 04:09:45 +00:00
fpu_explode.c Avoid aliasing which leads to incorrect results when compiling with the 2010-03-21 13:18:08 +00:00
fpu_extern.h - Remove a bogus forward declaration. 2010-03-20 21:04:47 +00:00
fpu_implode.c - While SPARC V9 allows tininess to be detected either before or after 2010-03-20 22:32:13 +00:00
fpu_mul.c Computations on NaNs are supposed to return one of the input NaNs unchanged. 2012-01-16 04:09:45 +00:00
fpu_qp.c
fpu_reg.h
fpu_reg.S
fpu_sqrt.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
fpu_subr.c
fpu.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
Makefile.inc