View Single Post
Old 22nd February 2008, 19:10   #20  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by squid_80 View Post
Divide by 256, rounding upwards:
(x+128)>>8

No good?
It won't give the same result as multiplying before shifting, IIRC.

Patch updated with unsigned fix.

Last edited by Dark Shikari; 22nd February 2008 at 19:12.
Dark Shikari is offline   Reply With Quote