cvs commit: src/lib/msun/src k_sin.c

Bruce Evans bde at
Wed Nov 2 05:06:53 PST 2005

bde         2005-11-02 13:06:49 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/src         k_sin.c 
  Updated the comment about the optimization for tiny x (the previous
  commit moved it).  This includes a comment that the "kernel" sine no
  longer works on arg -0, so callers must now handle this case.  The kernel
  sine still works on all other tiny args; without the optimization it is
  just a little slower on these args.  I intended it to keep working on
  all tiny args, but that seems to be impossible without losing efficiency
  or accuracy.  (sin(x) ~ x * (1 + S1*x**2 + ...) would preserve -0, but
  the approximation must be written as x + S1*x**3 + ... for accuracy.)
  Revision  Changes    Path
  1.10      +4 -2      src/lib/msun/src/k_sin.c

More information about the cvs-src mailing list