I finally got a toolchain up and running, so here is a tested solution to issue #428.
Looping through client-supplied buffer may seem a bit clunky here, but I'm trusting that the compiler will unroll the loop and inline all of the code at -O2.
I think this looks great! you're only looping through 2 characters, and the code only gets called when an ASL is compiled, so i don't see any issue with it.
I finally got a toolchain up and running, so here is a tested solution to issue #428.
Looping through client-supplied buffer may seem a bit clunky here, but I'm trusting that the compiler will unroll the loop and inline all of the code at
-O2
.