diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-12-05 14:12:57 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-12-05 14:12:57 -0500 |
commit | 96b3ea53f9ae365a82fb537d4fdac63c2082cc22 (patch) | |
tree | ba9ec1722ce133321a917423c8d97a8bc61fe377 /src/network/recvfrom.c | |
parent | b088f85582d8787911ef48449574bed4131b44a2 (diff) | |
download | musl-96b3ea53f9ae365a82fb537d4fdac63c2082cc22.tar.gz musl-96b3ea53f9ae365a82fb537d4fdac63c2082cc22.tar.xz musl-96b3ea53f9ae365a82fb537d4fdac63c2082cc22.zip |
fix inefficiency of math.h isless, etc. macros
previously, everything was going through an intermediate conversion to long double, which caused the extern __fpclassifyl function to get invoked, preventing virtually all optimizations of these operations. with the new code, tests on constant float or double arguments compile to a constant 0 or 1, and tests on non-constant expressions are efficient. I may later add support for __builtin versions on compilers that support them.
Diffstat (limited to 'src/network/recvfrom.c')
0 files changed, 0 insertions, 0 deletions