[Mplayer-cvslog] CVS: main/vidix/drivers mach64_vid.c,1.30,1.31

Colin Leroy CVS colin at mplayerhq.hu
Thu Oct 31 11:57:26 CET 2002


Update of /cvsroot/mplayer/main/vidix/drivers
In directory mail:/var/tmp.root/cvs-serv12210

Modified Files:
	mach64_vid.c 
Log Message:
INREG now static inline instead of a define, to avoid unnecessary GETREG 
calls while byteswapping.


Index: mach64_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/drivers/mach64_vid.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- mach64_vid.c	25 Oct 2002 23:58:33 -0000	1.30
+++ mach64_vid.c	31 Oct 2002 10:57:07 -0000	1.31
@@ -130,7 +130,11 @@
 
 #define INREG8(addr)		GETREG(uint8_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2)
 #define OUTREG8(addr,val)	SETREG(uint8_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,val)
-#define INREG(addr)		le2me_32(GETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2))
+
+static inline uint32_t INREG (uint32_t addr) {
+	uint32_t tmp = GETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2);
+	return le2me_32(tmp);
+}
 #define OUTREG(addr,val)	SETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,le2me_32(val))
 
 #define OUTREGP(addr,val,mask)  					\




More information about the MPlayer-cvslog mailing list