[Mplayer-cvslog] CVS: main/libmpcodecs vf_ivtc.c,1.2,1.3
Richard Felker CVS
rfelker at mplayerhq.hu
Sat Apr 26 20:31:34 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv916/libmpcodecs
Modified Files:
vf_ivtc.c
Log Message:
optimization -- lots of conditional jumps in inner loops are bad
Index: vf_ivtc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_ivtc.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- vf_ivtc.c 26 Apr 2003 05:59:28 -0000 1.2
+++ vf_ivtc.c 26 Apr 2003 18:31:08 -0000 1.3
@@ -238,7 +238,8 @@
#endif
//#define MAG(a) ((a)*(a))
-#define MAG(a) (abs(a))
+//#define MAG(a) (abs(a))
+#define MAG(a) (((a)^((a)>>31))-((a)>>31))
//#define LOWPASS(s) (((s)[-2] + 4*(s)[-1] + 6*(s)[0] + 4*(s)[1] + (s)[2])>>4)
//#define LOWPASS(s) (((s)[-1] + 2*(s)[0] + (s)[1])>>2)
More information about the MPlayer-cvslog
mailing list