summaryrefslogtreecommitdiffstats
path: root/sys/dev/asmc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2008-02-25 22:19:17 +0000
committerbde <bde@FreeBSD.org>2008-02-25 22:19:17 +0000
commitf77d7dfd70ab217884f2b4f8904f2c9a605ecd48 (patch)
tree2d96ab7d37d7cdf8c4b97d00f4ea3f3afadafe26 /sys/dev/asmc
parentcc99de551ef5d0d56e162c45483f364a64766fc6 (diff)
downloadFreeBSD-src-f77d7dfd70ab217884f2b4f8904f2c9a605ecd48.zip
FreeBSD-src-f77d7dfd70ab217884f2b4f8904f2c9a605ecd48.tar.gz
Inline __ieee754__rem_pio2f(). On amd64 (A64) and i386 (A64), this
gives an average speedup of about 12 cycles or 17% for 9pi/4 < |x| <= 2**19pi/2 and a smaller speedup for larger x, and a small speeddown for |x| <= 9pi/4 (only 1-2 cycles average, but that is 4%). Inlining this is less likely to bust caches than inlining the float version since it is much smaller (about 220 bytes text and rodata) and has many fewer branches. However, the float version was already large due to its manual inlining of the branches and also the polynomial evaluations.
Diffstat (limited to 'sys/dev/asmc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud