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/linux/prctl.c | |
parent | fix fallback code for old kernels in clock_gettime (diff) | |
download | grovel-233767b48a083f526557ee39aa1c773efa345972.tar.gz grovel-233767b48a083f526557ee39aa1c773efa345972.tar.xz |
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/linux/prctl.c')
0 files changed, 0 insertions, 0 deletions