aboutsummaryrefslogtreecommitdiff
path: root/sdn-install
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-07-09 04:36:43 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-07-09 05:16:37 +0200
commit98612f549202c491c9b97df54e77d413a8e35e8d (patch)
tree0784249facf2d5a3911d420ceebe63411497a062 /sdn-install
parent1034321f812a3e620063c21b7ce7a0d88be8ede2 (diff)
downloadsdn-98612f549202c491c9b97df54e77d413a8e35e8d.tar.gz
sdn-98612f549202c491c9b97df54e77d413a8e35e8d.tar.xz
sdn-98612f549202c491c9b97df54e77d413a8e35e8d.zip
Improve C-char parsing
I was hoping that a superoptimiser would help me find a miraculous branchless equation to cover it, but in the end the branching doesn't hurt at all in our case. It's more readable than `(((char >> 2) - 0x38) & 0x60) ^ char` or `(char ^ 0x40) & (((char >> 1) ^ 0x20) | 0x5f)`.
Diffstat (limited to 'sdn-install')
0 files changed, 0 insertions, 0 deletions