about summary refs log tree commit diff
path: root/src/math
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 /src/math
parent805698401dbac7ce3079fa97eaad5ba0508377f4 (diff)
downloadmusl-233767b48a083f526557ee39aa1c773efa345972.tar.gz
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 'src/math')
0 files changed, 0 insertions, 0 deletions