I've actually written exactly that before, when I needed to check the lowest bit in an SQL dialect with no bitwise operators. It was disgusting and awesome.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments