improve strerror speed
authorTimo Teräs <timo.teras@iki.fi>
Wed, 4 Mar 2020 09:27:01 +0000 (11:27 +0200)
committerRich Felker <dalias@aerifal.cx>
Sun, 15 Mar 2020 01:23:37 +0000 (21:23 -0400)
commit8343334d7b9cd4338bdac80e17be079cbc675ec3
treef5d9d39d0ae60519f92022e25620e06e26ea9560
parent2b2c8aafce9d80f9d58652643538f4d58e82b856
improve strerror speed

change the current O(n) lookup to O(1) based on the machinery
described in "How To Write Shared Libraries" (Appendix B).
src/errno/__strerror.h
src/errno/strerror.c