cvs commit: src/lib/msun Makefile src/lib/msun/man rint.3 src/lib/msun/src math.h s_nearbyint.c

David Schultz das at FreeBSD.org
Mon Jul 5 21:46:09 PDT 2004


das         2004-07-06 04:46:09 UTC

  FreeBSD src repository

  Modified files:
    lib/msun             Makefile 
    lib/msun/man         rint.3 
    lib/msun/src         math.h 
  Added files:
    lib/msun/src         s_nearbyint.c 
  Log:
  Add C99's nearbyint{,f}() functions as wrappers around rint().
  These trivial implementations are about 25 times slower than
  rint{,f}() on x86 due to the FP environment save/restore.
  They should eventually be redone in terms of fegetround() and
  bit fiddling.
  
  Revision  Changes    Path
  1.47      +3 -2      src/lib/msun/Makefile
  1.10      +35 -4     src/lib/msun/man/rint.3
  1.38      +2 -0      src/lib/msun/src/math.h
  1.1       +54 -0     src/lib/msun/src/s_nearbyint.c (new)


More information about the cvs-src mailing list