Hi! This is great stuff.

I've written a few asm loops in order to use bit-twiddling
instructions. The ones you listed cover all of those.

One other thing to consider is rotate. The compiler does a good job of
recognizing constant rotates and it's getting better
(https://github.com/golang/go/issues/18254) but rotate is just complex
enough that I'd call a specific rotate "intrinsic" function instead of
writing the Go code if it were important for performance that a rotate
instruction is emitted. Also, this could cover non-constant rotates.

-Caleb

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to