diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-05-18 12:34:00 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-05-18 12:34:00 +0000 |
commit | 1d5ba3bb5a3f55e10db05219638cfcd967d65417 (patch) | |
tree | 4cf78f97777619d73e91ba3c1431aadc434b3fe8 /include/pwd.h | |
parent | 22730d65608db06500cc6e0be4aaec03238f996b (diff) | |
download | musl-1d5ba3bb5a3f55e10db05219638cfcd967d65417.tar.gz musl-1d5ba3bb5a3f55e10db05219638cfcd967d65417.tar.xz musl-1d5ba3bb5a3f55e10db05219638cfcd967d65417.zip |
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/pwd.h')
0 files changed, 0 insertions, 0 deletions