xserver ChangeLog,3.360,3.361

Billy Biggs xserver-commit at pdx.freedesktop.org
Thu Aug 11 11:04:33 EST 2005


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  <vektor at dumbterm.net>
+
+	* 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  <keithp at keithp.com>
 
 	* configure.ac:



More information about the xserver-commit mailing list