cvs commit: src/lib/libc/alpha/gen ldexp.c src/lib/libc/arm/gen ldexp.c src/lib/libc/ia64/gen ldexp.c src/lib/libc/powerpc/gen ldexp.c src/lib/libc/sparc64/gen ldexp.c src/lib/libc/gen ldexp.c

David Schultz das at FreeBSD.org
Sun Jul 3 01:07:46 GMT 2005


das         2005-01-22 06:03:40 UTC

  FreeBSD src repository

  Added files:
    lib/libc/gen         ldexp.c 
  Removed files:
    lib/libc/alpha/gen   ldexp.c 
    lib/libc/arm/gen     ldexp.c 
    lib/libc/ia64/gen    ldexp.c 
    lib/libc/powerpc/gen ldexp.c 
    lib/libc/sparc64/gen ldexp.c 
  Log:
  Replace the ldexp() implementation in libc with a renamed copy of the
  scalbn() implementation from libm.  (The two functions are defined to
  be identical, but ldexp() lives in libc for backwards compatibility.)
  The old ldexp() implementation...
    - was more complicated than this one
    - set errno instead of raising FP exceptions
    - got some corner cases wrong
      (e.g. ldexp(1.0, 2000) in round-to-zero mode)
  
  The new implementation lives in libc/gen instead of
  libc/$MACHINE_ARCH/gen, since we don't need N copies of a
  machine-independent file.  The amd64 and i386 platforms
  retain their fast and correct MD implementations and
  override this one.
  
  Revision  Changes    Path
  1.5       +0 -137    src/lib/libc/alpha/gen/ldexp.c (dead)
  1.2       +0 -155    src/lib/libc/arm/gen/ldexp.c (dead)
  1.1       +123 -0    src/lib/libc/gen/ldexp.c (new)
  1.4       +0 -137    src/lib/libc/ia64/gen/ldexp.c (dead)
  1.2       +0 -155    src/lib/libc/powerpc/gen/ldexp.c (dead)
  1.4       +0 -155    src/lib/libc/sparc64/gen/ldexp.c (dead)



More information about the cvs-src mailing list