comparison include/SDL_endian.h @ 3013:8cc00819c8d6

Reverted Bob's indent checkin
author Sam Lantinga <slouken@libsdl.org>
date Sat, 10 Jan 2009 21:50:26 +0000
parents 8f4ed5ec2b06
children bcd41b269091
comparison
equal deleted inserted replaced
3012:7e30c2dc7783 3013:8cc00819c8d6
154 } s; 154 } s;
155 Uint64 u; 155 Uint64 u;
156 } v; 156 } v;
157 v.u = x; 157 v.u = x;
158 __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1": "=r"(v.s.a), "=r"(v.s.b):"0"(v.s.a), 158 __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1": "=r"(v.s.a), "=r"(v.s.b):"0"(v.s.a),
159 "1"(v. 159 "1"(v.s.
160 s.b)); 160 b));
161 return v.u; 161 return v.u;
162 } 162 }
163 #elif defined(__GNUC__) && defined(__x86_64__) 163 #elif defined(__GNUC__) && defined(__x86_64__)
164 static __inline__ Uint64 164 static __inline__ Uint64
165 SDL_Swap64(Uint64 x) 165 SDL_Swap64(Uint64 x)