You might be interested in this implementation: https://engineering.fb.com/2019/04/25/developer-tools/f14/
On Mon, May 13, 2024 at 4:24 PM Bruno Haible <br...@clisp.org> wrote: > > Paul Eggert wrote: > > I installed the > > attached. This probably a win (over de Bruijn too), at least for some > > apps and platforms, though I haven't benchmarked. > > Thanks! Replacing a table access with ca. 7 arithmetic instructions > definitely a win. > > I also love how this code makes use of conditional or carry instructions, > avoiding conditional jumps, on most CPUs. > > Bruno > > > > >