freebsd-dev/lib/libc/sparc64
Stefan Farfeleder 1470d46611 Fix long (and long long) to long double, unsigned to long double and unsigned
long (and unsigned long long) to long double conversions.
- Add a parameter that specifies the position of the sign bit to the _QP_TTOQ
  macro, previously it always looked at bit 31.  Pass a negative number to
  disable sign inspection for unsigned types.  This fixes _Qp_xtoq(),
  _Qp_uitoq() and _Qp_uxtoq().
- In the functions __fpu_itof() and __fpu_xtof(), look at the sign bit to
  decide whether we're doing a conversion from an unsigned type.  If so, don't
  negate the mantissa if the integer exceeds the biggest signed number.

PR:		55773
Patch by:	Stephen Paskaluk (based upon)
MFC after:	2 weeks
2005-05-27 10:00:22 +00:00
..
fpu Fix long (and long long) to long double, unsigned to long double and unsigned 2005-05-27 10:00:22 +00:00
gen Remove fpsetsticky(). This was added for SysV compatibility, but due 2005-03-15 15:53:39 +00:00
net Use FBSDID 2002-06-30 05:36:49 +00:00
stdlib Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc. 2005-01-15 05:23:58 +00:00
string
sys Add prototypes for the three syscall stubs that are invoked here, 2004-01-19 16:14:58 +00:00
_fpmath.h Define LDBL_NBIT to be a mask indicating the position of the integer 2005-03-07 04:55:22 +00:00
arith.h Add a comment describing why it's important for the values in this 2003-05-08 13:50:44 +00:00
Makefile.inc Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc. 2005-01-15 05:23:58 +00:00
SYS.h Fix the style of the SCM ID's. 2002-03-22 23:42:05 +00:00