1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02:00

Use native bswap32 instruction when __CPU__ is x86_64 instead of generic 386 code

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17665 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2006-02-22 10:30:55 +00:00
parent 896b9248fa
commit bba0ade100

View File

@ -25,7 +25,7 @@ static inline uint16_t ByteSwap16(uint16_t x)
static inline uint32_t ByteSwap32(uint32_t x)
{
#if __CPU__ > 386
#if __CPU__ != 386
__asm("bswap %0":
"=r" (x) :
#else