xserver ChangeLog,3.360,3.361
Billy Biggs <xserver-commit-u7BhqnqprCWvj1b/[email protected]> Wed, 10 Aug 2005 18:04:33 -0700 (PDT)
| Newsgroups | gmane.comp.freedesktop.xserver.cvs |
|---|---|
| Message-ID | <[email protected]> |
Committed by: vektor Update of /cvs/xserver/xserver In directory gabe:/tmp/cvs-serv5794 Modified Files: ChangeLog Log Message: * fb/fbpict.h: Fix a rounding error in many of the division by 255 macros. The code used was: ((x + (x >> 8) + 0x80) >> 8). This is incorrect, the inner shift must also be rounded up. The correct formula is: (t = x + 0x80), ((t + (t >> 8)) >> 8). Index: ChangeLog =================================================================== RCS file: /cvs/xserver/xserver/ChangeLog,v retrieving revision 3.360 retrieving revision 3.361 diff -u -d -r3.360 -r3.361 --- ChangeLog 8 Aug 2005 06:25:19 -0000 3.360 +++ ChangeLog 11 Aug 2005 01:04:31 -0000 3.361 @@ -1,3 +1,10 @@ +2005-08-10 Billy Biggs <[email protected]> + + * fb/fbpict.h: Fix a rounding error in many of the division by + 255 macros. The code used was: ((x + (x >> 8) + 0x80) >> 8). + This is incorrect, the inner shift must also be rounded up. The + correct formula is: (t = x + 0x80), ((t + (t >> 8)) >> 8). + 2005-08-07 Keith Packard <[email protected]> * configure.ac: