summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_log.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2005-11-02 13:06:49 +0000
committerbde <bde@FreeBSD.org>2005-11-02 13:06:49 +0000
commit728b935c7f99f10947da6d54873e625c1a7a69c7 (patch)
treebd9448d5ee6e241450c77e61e5fc86d0316c1dec /sys/kern/subr_log.c
parent5edf61585c70920d2a9184173def09909233d0fc (diff)
downloadFreeBSD-src-728b935c7f99f10947da6d54873e625c1a7a69c7.zip
FreeBSD-src-728b935c7f99f10947da6d54873e625c1a7a69c7.tar.gz
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.)
Diffstat (limited to 'sys/kern/subr_log.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud