Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 32246 | Differences between
and this patch

Collapse All | Expand All

(-)linux-2.4.22/include/asm-i386/types.h (-3 / +7 lines)
Lines 17-27 Link Here
17
typedef __signed__ int __s32;
17
typedef __signed__ int __s32;
18
typedef unsigned int __u32;
18
typedef unsigned int __u32;
19
19
20
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
20
#ifndef __GNUC__
21
typedef __signed__ long long __s64;
21
# ifndef __extension__
22
typedef unsigned long long __u64;
22
#  define __extension__
23
# endif
23
#endif
24
#endif
24
25
26
__extension__ typedef __signed__ long long __s64;
27
__extension__ typedef unsigned long long __u64;
28
25
/*
29
/*
26
 * These aren't exported outside the kernel to avoid name space clashes
30
 * These aren't exported outside the kernel to avoid name space clashes
27
 */
31
 */
(-)linux-2.4.22/include/asm-i386/byteorder.h (-3 / +3 lines)
Lines 35-41 Link Here
35
}
35
}
36
36
37
37
38
static inline __u64 ___arch__swab64(__u64 val) 
38
static __inline__ __const__ __u64 ___arch__swab64(__u64 val)
39
{ 
39
{ 
40
	union { 
40
	union { 
41
		struct { __u32 a,b; } s;
41
		struct { __u32 a,b; } s;
Lines 43-55 Link Here
43
	} v;
43
	} v;
44
	v.u = val;
44
	v.u = val;
45
#ifdef CONFIG_X86_BSWAP
45
#ifdef CONFIG_X86_BSWAP
46
	asm("bswapl %0 ; bswapl %1 ; xchgl %0,%1" 
46
	__asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" 
47
	    : "=r" (v.s.a), "=r" (v.s.b) 
47
	    : "=r" (v.s.a), "=r" (v.s.b) 
48
	    : "0" (v.s.a), "1" (v.s.b)); 
48
	    : "0" (v.s.a), "1" (v.s.b)); 
49
#else
49
#else
50
   v.s.a = ___arch__swab32(v.s.a); 
50
   v.s.a = ___arch__swab32(v.s.a); 
51
	v.s.b = ___arch__swab32(v.s.b); 
51
	v.s.b = ___arch__swab32(v.s.b); 
52
	asm("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
52
	__asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b));
53
#endif
53
#endif
54
	return v.u;	
54
	return v.u;	
55
} 
55
} 

Return to bug 32246