From owner-cvs-src@FreeBSD.ORG  Wed May  2 13:49:29 2007
Return-Path: <owner-cvs-src@FreeBSD.ORG>
X-Original-To: cvs-src@FreeBSD.org
Delivered-To: cvs-src@FreeBSD.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 34D2D16A407;
	Wed,  2 May 2007 13:49:29 +0000 (UTC) (envelope-from bde@FreeBSD.org)
Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41])
	by mx1.freebsd.org (Postfix) with ESMTP id 286B513C459;
	Wed,  2 May 2007 13:49:29 +0000 (UTC) (envelope-from bde@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
	by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l42DnTrT016173;
	Wed, 2 May 2007 13:49:29 GMT (envelope-from bde@repoman.freebsd.org)
Received: (from bde@localhost)
	by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l42DnSRZ016172;
	Wed, 2 May 2007 13:49:28 GMT (envelope-from bde)
Message-Id: <200705021349.l42DnSRZ016172@repoman.freebsd.org>
From: Bruce Evans <bde@FreeBSD.org>
Date: Wed, 2 May 2007 13:49:28 +0000 (UTC)
To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
X-FreeBSD-CVS-Branch: HEAD
Cc: 
Subject: cvs commit: src/lib/msun/bsdsrc b_tgamma.c
X-BeenThere: cvs-src@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: CVS commit messages for the src tree <cvs-src.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>,
	<mailto:cvs-src-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/cvs-src>
List-Post: <mailto:cvs-src@freebsd.org>
List-Help: <mailto:cvs-src-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/cvs-src>,
	<mailto:cvs-src-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 02 May 2007 13:49:29 -0000

bde         2007-05-02 13:49:28 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/bsdsrc      b_tgamma.c 
  Log:
  Document (in a comment) the current (slightly broken) handling of special
  values in more detail, and change the style of this comment to be closer
  to fdlibm and C99:
  - tgamma(-Inf) was undocumented and is wrong (+Inf, should be NaN)
  - tgamma(negative integer) is as intended (+Inf) but not best for IEEE-754
    (NaN)
  - tgamma(-0) was documented as being wrong (+Inf) but was correct (-Inf)
  - documentation of setting of exceptions (overflow, etc.) was more
    complete here than in most of libm, but was further from matching
    the actual setting than in most of libm, due to various bugs here
    (primarily, always evaluating +Inf one/zero and getting unwanted
    divide-by-zero exceptions from this).  Now the actual behaviour with
    gcc -O0 is documented.  Optimization still breaks setting of exceptions
    all over libm, so nothing can depend on this working.
  - tgamma(NaN)'s exception was documented as being wrong (invalid) but was
    correct (no exception with IEEEish NaNs).
  
  Finish (?) rev.1.5.  gamma was not renamed to tgamma in one place.
  
  Finish (?) rev.1.6.  errno.h was not completely removed.
  
  Revision  Changes    Path
  1.8       +9 -6      src/lib/msun/bsdsrc/b_tgamma.c