Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
account42
· 5mo ago · 0 comments
Shift right isn't even relevant here - if you shift before conversion to float all your values end up 0 and if you want to divide afterwards its no longer a simple shift.
Comments
[–]
exyi
5mo ago
Exactly. Although if you do >> 8 while working with uint8, it will be the fastest :)