You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those seem more concise than doing an indirect table lookup through the GOT; unfortunately it doesn't seem faster according to llvm-mca for -mcpu=skylake: https://godbolt.org/z/K8zYxfYbE
Activity
bwendling commentedon Aug 18, 2022
One possibility: take an unsigned long amount of the string and perform the check on that as a whole:
(I may have been looking at too much Linux code...)
nickdesaulniers commentedon Nov 29, 2022
Also, we get nice branchless code with:
Those seem more concise than doing an indirect table lookup through the GOT; unfortunately it doesn't seem faster according to llvm-mca for -mcpu=skylake: https://godbolt.org/z/K8zYxfYbE