From owner-cvs-src@FreeBSD.ORG Fri Jun 10 19:00:51 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C80CC16A41C; Fri, 10 Jun 2005 19:00:51 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A589043D1F; Fri, 10 Jun 2005 19:00:51 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j5AJ0pAf087735; Fri, 10 Jun 2005 19:00:51 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j5AJ0pPY087734; Fri, 10 Jun 2005 19:00:51 GMT (envelope-from stefanf) Message-Id: <200506101900.j5AJ0pPY087734@repoman.freebsd.org> From: Stefan Farfeleder Date: Fri, 10 Jun 2005 19:00:51 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Cc: Subject: cvs commit: src/lib/libc/sparc64/fpu fpu_explode.c fpu_qp.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2005 19:00:52 -0000 stefanf 2005-06-10 19:00:51 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) lib/libc/sparc64/fpu fpu_explode.c fpu_qp.c Log: MFC fpu_explode.c 1.6 and fpu_qp.c 1.6: 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. Revision Changes Path 1.5.8.1 +16 -2 src/lib/libc/sparc64/fpu/fpu_explode.c 1.5.2.1 +8 -8 src/lib/libc/sparc64/fpu/fpu_qp.c