summaryrefslogtreecommitdiff
path: root/include/math.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-04-15 13:30:20 -0400
committerRich Felker <dalias@aerifal.cx>2014-04-15 13:30:20 -0400
commit233767b48a083f526557ee39aa1c773efa345972 (patch)
treeedee31b5097d4a1dc594975e5e82cf903d9083e3 /include/math.h
parent805698401dbac7ce3079fa97eaad5ba0508377f4 (diff)
downloadmusl-233767b48a083f526557ee39aa1c773efa345972.tar.gz
musl-233767b48a083f526557ee39aa1c773efa345972.tar.bz2
musl-233767b48a083f526557ee39aa1c773efa345972.tar.xz
musl-233767b48a083f526557ee39aa1c773efa345972.zip
avoid linear-time if/else special cases in sysconf
the previous handling of cases that could not fit in the 16-bit table or which required non-constant results was extremely ugly and could not scale. the new code remaps these keys into a contiguous range that's efficient for a switch statement.
Diffstat (limited to 'include/math.h')
0 files changed, 0 insertions, 0 deletions