[Gridflow-cvs] [svn] commit: r5615 - /trunk/src/classes3.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed May 5 23:52:07 EDT 2010


Author: matju
Date: Wed May  5 23:52:05 2010
New Revision: 5615

Log:
[#lop_space] plus vite

Modified:
    trunk/src/classes3.cxx

Modified: trunk/src/classes3.cxx
==============================================================================
--- trunk/src/classes3.cxx (original)
+++ trunk/src/classes3.cxx Wed May  5 23:52:05 2010
@@ -1372,7 +1372,7 @@
 	T *rdata = (T *)*r2;
 	for (;n;n-=sxc, data+=sxc) {
 		T tada[sxc+sc]; CLEAR(tada,sc);
-		for (int i=0; i<sxc; i++) tada[i+sc] = shr8r(tada[i]*(256-rdata[i]) + data[i]*rdata[i] + 128);
+		for (int i=0; i<sxc; i++) tada[i+sc] = shr8r(tada[i]*256 + (data[i]-tada[i])*rdata[i]);
 		out->send(sxc,tada+sc);
 	}
 } GRID_END



More information about the Gridflow-cvs mailing list