summaryrefslogtreecommitdiff
path: root/include/memory.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-05-18 12:34:00 +0000
committerSzabolcs Nagy <nsz@port70.net>2013-05-18 12:34:00 +0000
commit1d5ba3bb5a3f55e10db05219638cfcd967d65417 (patch)
tree4cf78f97777619d73e91ba3c1431aadc434b3fe8 /include/memory.h
parent22730d65608db06500cc6e0be4aaec03238f996b (diff)
downloadmusl-1d5ba3bb5a3f55e10db05219638cfcd967d65417.tar.gz
math: tan cleanups
* use unsigned arithmetics on the representation * store arg reduction quotient in unsigned (so n%2 would work like n&1) * use different convention to pass the arg reduction bit to __tan (this argument used to be 1 for even and -1 for odd reduction which meant obscure bithacks, the new n&1 is cleaner) * raise inexact and underflow flags correctly for small x (tanl(x) may still raise spurious underflow for small but normal x) (this exception raising code increases codesize a bit, similar fixes are needed in many other places, it may worth investigating at some point if the inexact and underflow flags are worth raising correctly as this is not strictly required by the standard) * tanf manual reduction optimization is kept for now * tanl code path is cleaned up to follow similar logic to tan and tanf
Diffstat (limited to 'include/memory.h')
0 files changed, 0 insertions, 0 deletions