musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/stdio/setvbuf.c
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 /src/stdio/setvbuf.c
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 'src/stdio/setvbuf.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 10:13:09 +0000

AltStyle によって変換されたページ (->オリジナル) /