Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/include
Modified Files:
evas_common.h
Log Message:
optimise... THIS! BIATCH! :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/include/evas_common.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- evas_common.h 27 Jan 2005 10:05:41 -0000 1.27
+++ evas_common.h 3 Feb 2005 07:28:07 -0000 1.28
@@ -541,11 +541,34 @@
#define GB_VAL(p) ((DATA16 *)(p)[1])
#endif
+/* thanks to some chats with Mirek Fidler... the new blender code for C
+ * blender fallbacks is faster. benchmarks (for the blending code only):
+ *
+ * OLD BLENDER:
+ * MMX: 0.606
+ * C: 1.026
+ *
+ * NEW BLENDER:
+ * C: 0.716
+ */
+
+#if 0 /* old blender */
+#define BLEND_ALPHA_SETUP(a, tmp)
#define BLEND_COLOR(a, nc, c, cc, tmp) \
{ \
(tmp) = ((c) - (cc)) * (a); \
(nc) = (cc) + (((tmp) + ((tmp) >> 8) + 0x80) >> 8); \
}
+#else /* new blender - faster! */
+#define BLEND_ALPHA_SETUP(a, tmp) \
+{ \
+ (tmp) = ((a) + ((a) >> 7)); \
+}
+#define BLEND_COLOR(a, nc, c, cc, tmp) \
+{ \
+ (nc) = ((((tmp) * ((c) - (cc))) >> 8) + (cc)); \
+}
+#endif
#define PIXEL_SOLID_ALPHA 0xff000000
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs