[Mplayer-cvslog] CVS: main bswap.h,1.2,1.3

Atmosfear atmos4 at mplayerhq.hu
Mon Aug 5 15:04:57 CEST 2002


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

Modified Files:
	bswap.h 
Log Message:
Bswap fixes for 64bit cpus, thx to Falk Hueffner for the hint.


Index: bswap.h
===================================================================
RCS file: /cvsroot/mplayer/main/bswap.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- bswap.h	30 Jul 2001 09:08:23 -0000	1.2
+++ bswap.h	5 Aug 2002 13:04:54 -0000	1.3
@@ -40,7 +40,7 @@
 inline static unsigned long long int ByteSwap64(unsigned long long int x)
 {
   register union { __extension__ unsigned long long int __ll;
-          unsigned long int __l[2]; } __x;
+          unsigned int __l[2]; } __x;
   asm("xchgl	%0,%1":
       "=r"(__x.__l[0]),"=r"(__x.__l[1]):
       "0"(bswap_32((unsigned long)x)),"1"(bswap_32((unsigned long)(x>>32))));
@@ -61,7 +61,7 @@
 #define bswap_64(x) \
      (__extension__						\
       ({ union { __extension__ unsigned long long int __ll;	\
-                 unsigned long int __l[2]; } __w, __r;		\
+                 unsigned int __l[2]; } __w, __r;		\
          __w.__ll = (x);					\
          __r.__l[0] = bswap_32 (__w.__l[1]);			\
          __r.__l[1] = bswap_32 (__w.__l[0]);			\




More information about the MPlayer-cvslog mailing list