Quote:
Originally Posted by shekh
This is not exact
65404*255/65535 = 254.49 -> rounds to 254
65404>>8 = 255
|
"because if your input is not a power of 2, your result will be like an integer-truncated division by 256" ... and not by 257, which is why it is nonsense what I wrote here. You are right, sorry, I don't know what I was thinking.