Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Feb 2003 12:37:55 -0800 (PST)
From:      Mike Barcroft <mike@FreeBSD.org>
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 ...
Message-ID:  <200302082037.h18KbtFq067266@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <machine/_types.h>, and provide
    double_t and float_t typedefs in <math.h>.
  o Add some C99 manifest constants (FP_ILOGB0, FP_ILOGBNAN, HUGE_VALF,
    HUGE_VALL, INFINITY, NAN, and return values for fpclassify()) to
    <math.h> and others (FLT_EVAL_METHOD, DECIMAL_DIG) to <float.h> via
    <machine/float.h>.
  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 <dschultz@uclink.Berkeley.EDU>
                  (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-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302082037.h18KbtFq067266>