From owner-cvs-all Sat Feb 8 12:38: 2 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 896BE37B405; Sat, 8 Feb 2003 12:37:56 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E852D43F75; Sat, 8 Feb 2003 12:37:55 -0800 (PST) (envelope-from mike@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h18Kbtbv067267; Sat, 8 Feb 2003 12:37:55 -0800 (PST) (envelope-from mike@repoman.freebsd.org) Received: (from mike@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h18KbtFq067266; Sat, 8 Feb 2003 12:37:55 -0800 (PST) Message-Id: <200302082037.h18KbtFq067266@repoman.freebsd.org> From: Mike Barcroft Date: Sat, 8 Feb 2003 12:37:55 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org, legacy-committers@FreeBSD.org Subject: cvs commit: src/lib/libc Makefile src/lib/libc/alpha _fpmath.h src/lib/libc/alpha/gen infinity.c src/lib/libc/gen Makefile.inc fpclassify.3 fpclassify.c src/lib/libc/i386 _fpmath.h src/lib/libc/i386/gen infinity.c src/lib/libc/ia64 _fpmath.h ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mike 2003/02/08 12:37:55 PST Modified files: lib/libc Makefile lib/libc/alpha/gen infinity.c lib/libc/gen Makefile.inc lib/libc/i386/gen infinity.c lib/libc/ia64/gen infinity.c lib/libc/powerpc/gen infinity.c lib/libc/sparc64/gen infinity.c lib/msun/src math.h sys/alpha/include _types.h float.h sys/i386/include _types.h float.h sys/ia64/include _types.h float.h sys/powerpc/include _types.h float.h sys/sparc64/include _types.h float.h Added files: lib/libc/alpha _fpmath.h lib/libc/gen fpclassify.3 fpclassify.c lib/libc/i386 _fpmath.h lib/libc/ia64 _fpmath.h lib/libc/include fpmath.h lib/libc/powerpc _fpmath.h lib/libc/sparc64 _fpmath.h Log: Implement fpclassify(): o Add a MD header private to libc called _fpmath.h; this header contains bitfield layouts of MD floating-point types. o Add a MI header private to libc called fpmath.h; this header contains bitfield layouts of MI floating-point types. o Add private libc variables to lib/libc/$arch/gen/infinity.c for storing NaN values. o Add __double_t and __float_t to , and provide double_t and float_t typedefs in . o Add some C99 manifest constants (FP_ILOGB0, FP_ILOGBNAN, HUGE_VALF, HUGE_VALL, INFINITY, NAN, and return values for fpclassify()) to and others (FLT_EVAL_METHOD, DECIMAL_DIG) to via . o Add C99 macro fpclassify() which calls __fpclassify{d,f,l}() based on the size of its argument. __fpclassifyl() is never called on alpha because (sizeof(long double) == sizeof(double)), which is good since __fpclassifyl() can't deal with such a small `long double'. This was developed by David Schultz and myself with input from bde and fenner. PR: 23103 Submitted by: David Schultz (significant portions) Reviewed by: bde, fenner (earlier versions) Revision Changes Path 1.38 +1 -1 src/lib/libc/Makefile 1.1 +39 -0 src/lib/libc/alpha/_fpmath.h (new) 1.7 +3 -0 src/lib/libc/alpha/gen/infinity.c 1.101 +3 -2 src/lib/libc/gen/Makefile.inc 1.1 +81 -0 src/lib/libc/gen/fpclassify.3 (new) 1.1 +93 -0 src/lib/libc/gen/fpclassify.c (new) 1.1 +40 -0 src/lib/libc/i386/_fpmath.h (new) 1.10 +3 -0 src/lib/libc/i386/gen/infinity.c 1.1 +40 -0 src/lib/libc/ia64/_fpmath.h (new) 1.6 +3 -0 src/lib/libc/ia64/gen/infinity.c 1.1 +63 -0 src/lib/libc/include/fpmath.h (new) 1.1 +40 -0 src/lib/libc/powerpc/_fpmath.h (new) 1.2 +3 -0 src/lib/libc/powerpc/gen/infinity.c 1.1 +40 -0 src/lib/libc/sparc64/_fpmath.h (new) 1.7 +3 -0 src/lib/libc/sparc64/gen/infinity.c 1.21 +32 -0 src/lib/msun/src/math.h 1.3 +2 -0 src/sys/alpha/include/_types.h 1.4 +2 -0 src/sys/alpha/include/float.h 1.5 +2 -0 src/sys/i386/include/_types.h 1.10 +2 -0 src/sys/i386/include/float.h 1.5 +2 -0 src/sys/ia64/include/_types.h 1.3 +3 -1 src/sys/ia64/include/float.h 1.4 +2 -0 src/sys/powerpc/include/_types.h 1.2 +2 -0 src/sys/powerpc/include/float.h 1.3 +2 -0 src/sys/sparc64/include/_types.h 1.3 +2 -0 src/sys/sparc64/include/float.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message