Date: Fri, 27 May 2005 10:00:23 +0000 (UTC) From: Stefan Farfeleder <stefanf@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/sparc64/fpu fpu_explode.c fpu_qp.c Message-ID: <200505271000.j4RA0NWQ070424@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
stefanf 2005-05-27 10:00:22 UTC FreeBSD src repository Modified files: lib/libc/sparc64/fpu fpu_explode.c fpu_qp.c Log: 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 Revision Changes Path 1.6 +16 -2 src/lib/libc/sparc64/fpu/fpu_explode.c 1.6 +8 -8 src/lib/libc/sparc64/fpu/fpu_qp.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505271000.j4RA0NWQ070424>