Mercurial > sdl-ios-xcode
comparison include/SDL_endian.h @ 1026:0f3aa6ab3341
Select patches included from The NetBSD Package Collection (www.pkgsrc.org)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 12 Jan 2005 06:04:48 +0000 |
parents | c4e5473672b6 |
children | 3cf036d8861f |
comparison
equal
deleted
inserted
replaced
1025:3652d111416c | 1026:0f3aa6ab3341 |
---|---|
66 return x; | 66 return x; |
67 } | 67 } |
68 #elif defined(__GNUC__) && defined(__x86_64__) | 68 #elif defined(__GNUC__) && defined(__x86_64__) |
69 static __inline__ Uint16 SDL_Swap16(Uint16 x) | 69 static __inline__ Uint16 SDL_Swap16(Uint16 x) |
70 { | 70 { |
71 __asm__("xchgb %b0,%h0" : "=q" (x) : "0" (x)); | 71 __asm__("xchgb %b0,%h0" : "=Q" (x) : "0" (x)); |
72 return x; | 72 return x; |
73 } | 73 } |
74 #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) | 74 #elif defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) |
75 static __inline__ Uint16 SDL_Swap16(Uint16 x) | 75 static __inline__ Uint16 SDL_Swap16(Uint16 x) |
76 { | 76 { |