diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-04-15 13:30:20 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-04-15 13:30:20 -0400 |
commit | 233767b48a083f526557ee39aa1c773efa345972 (patch) | |
tree | edee31b5097d4a1dc594975e5e82cf903d9083e3 /src/unistd/rmdir.c | |
parent | 805698401dbac7ce3079fa97eaad5ba0508377f4 (diff) | |
download | musl-233767b48a083f526557ee39aa1c773efa345972.tar.gz |
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/unistd/rmdir.c')
0 files changed, 0 insertions, 0 deletions