Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Nov 2005 13:06:49 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/msun/src k_sin.c
Message-ID:  <200511021306.jA2D6n79076814@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         2005-11-02 13:06:49 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/src         k_sin.c 
  Log:
  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



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