diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-05-27 10:00:22 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-05-27 10:00:22 +0000 |
commit | 194c67c3c8bad703f62d8f1294c11eb847764428 (patch) | |
tree | f6003ef89e1f08e9ae380f4c2ad6c2037e010ffc /sys/kern/subr_sleepqueue.c | |
parent | b83d3b8bcc5ec80538880f65b3c34fd80e30bdea (diff) | |
download | FreeBSD-src-194c67c3c8bad703f62d8f1294c11eb847764428.zip FreeBSD-src-194c67c3c8bad703f62d8f1294c11eb847764428.tar.gz |
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
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
0 files changed, 0 insertions, 0 deletions