cvs commit: src/lib/msun/src k_tanf.c math_private.h s_tanf.c

Bruce Evans bde at FreeBSD.org
Wed Nov 23 14:27:57 GMT 2005


bde         2005-11-23 14:27:56 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/src         k_tanf.c math_private.h s_tanf.c 
  Log:
  Use only double precision for "kernel" tanf (except for returning float).
  This is a minor interface change.  The function is renamed from
  __kernel_tanf() to __kernel_tandf() so that misues of it will cause
  link errors and not crashes.
  
  This version is a routine translation with no special optimizations
  for accuracy or efficiency.  It gives an unimportant increase in
  accuracy, from ~0.9 ulps to 0.5285 ulps.  Almost all of the error is
  from the minimax polynomial (~0.03 ulps and the final rounding step
  (< 0.5 ulps).  It gives strange differences in efficiency in the -5
  to +10% range, with -O1 fairly consistently becoming faster and -O2
  slower on AXP and A64 with gcc-3.3 and gcc-3.4.
  
  Revision  Changes    Path
  1.16      +17 -20    src/lib/msun/src/k_tanf.c
  1.19      +1 -1      src/lib/msun/src/math_private.h
  1.13      +2 -8      src/lib/msun/src/s_tanf.c


More information about the cvs-src mailing list