diff postproc/postprocess_template.c @ 2189:82556b3a1228

Cleanup: - TIMEING && MORE_TIMEING disabled by default - private stuff moved to postprocess.c to avoid possible conflicts
author arpi
date Sat, 13 Oct 2001 15:53:24 +0000
parents c5162871cf2b
children d67223ae168f
line wrap: on
line diff
--- a/postproc/postprocess_template.c	Sat Oct 13 15:45:01 2001 +0000
+++ b/postproc/postprocess_template.c	Sat Oct 13 15:53:24 2001 +0000
@@ -90,6 +90,16 @@
 //#undef HAVE_MMX
 #include "postprocess.h"
 
+#define MIN(a,b) ((a) > (b) ? (b) : (a))
+#define MAX(a,b) ((a) < (b) ? (b) : (a))
+#define ABS(a) ((a) > 0 ? (a) : (-(a)))
+#define SIGN(a) ((a) > 0 ? 1 : -1)
+
+#ifdef HAVE_MMX2
+#define PAVGB(a,b) "pavgb " #a ", " #b " \n\t"
+#elif defined (HAVE_3DNOW)
+#define PAVGB(a,b) "pavgusb " #a ", " #b " \n\t"
+#endif
 
 static uint64_t packedYOffset=	0x0000000000000000LL;
 static uint64_t packedYScale=	0x0100010001000100LL;