View Single Post
  #6  
Old 01-19-2017, 16:55
chants chants is online now
VIP
 
Join Date: Jul 2016
Posts: 875
Rept. Given: 48
Rept. Rcvd 53 Times in 32 Posts
Thanks Given: 754
Thanks Rcvd at 1,171 Times in 542 Posts
chants Reputation: 53
Yes, that was the pearl of wisdom needed here. I had long forgotten this old SBB trick. From a C perspective its the casting to bool operation.

It would be nice if all the assembler bit tricks were compiled somewhere as similar to:
https://graphics.stanford.edu/~seander/bithacks.html
Reply With Quote