Update: Added the words "unsigned integer" in the first paragraph.sub msb_pos_is_equal { my ($x, $y) = @_; ($x ^ $y) <= ($x & $y) }
In reply to Re: reliable get position of leftmost bit in large integers
by martin
in thread reliable get position of leftmost bit in large integers
by wollmers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |