Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
muricula
· 5y ago · 0 comments
Basically lzcnt or leading zero count on x86:
https://www.felixcloutier.com/x86/lzcnt
Comments
[–]
ac42
5y ago
> It should be noted that on processors that do not support LZCNT, the instruction byte encoding is executed as BSR.
This. Boggles.
[–]
bombcar
5y ago
https://stackoverflow.com/a/43443701
- interesting - it seems to be a side effect of changing meaning of an instruction.