Mercurial > mplayer.hg
comparison dvdread/bswap.h @ 21592:ae0f4c4e4d9d
__CPU__ will be x86-64 under amd64 and fail the check "#if __CPU__ > 386".
patch by Zuxy Meng, zuxy.meng gmail com
author | diego |
---|---|
date | Wed, 13 Dec 2006 11:23:15 +0000 |
parents | 22cb9d5f1e21 |
children | de28f9e8cb00 |
comparison
equal
deleted
inserted
replaced
21591:8f2abfd4e082 | 21592:ae0f4c4e4d9d |
---|---|
80 #define B2N_16(x) x = bswap_16(x) | 80 #define B2N_16(x) x = bswap_16(x) |
81 | 81 |
82 inline static unsigned int bswap_32(unsigned int x) | 82 inline static unsigned int bswap_32(unsigned int x) |
83 { | 83 { |
84 __asm( | 84 __asm( |
85 #if __CPU__ > 386 | 85 #if __CPU__ != 386 |
86 "bswap %0": | 86 "bswap %0": |
87 "=r" (x) : | 87 "=r" (x) : |
88 #else | 88 #else |
89 "xchgb %b0,%h0\n" | 89 "xchgb %b0,%h0\n" |
90 " rorl $16,%0\n" | 90 " rorl $16,%0\n" |