diff options
author | Mans Rullgard <mans@mansr.com> | 2011-12-12 01:33:17 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-12-12 12:14:15 +0000 |
commit | 5b0d35eaedbb08d0c11fa4f2b47a24d91aaa294d (patch) | |
tree | 09f37c0b8353bda28d57f6a78cdcda48193f5910 /libavutil | |
parent | f64c2e710fa1a7b59753224e717f57c48462076f (diff) | |
download | ffmpeg-5b0d35eaedbb08d0c11fa4f2b47a24d91aaa294d.tar.gz |
x86: bswap: remove test for bswap instruction
Firstly, this test never worked as intended, always reporting
success. Secondly, bswap is available from 486 onward and can
thus be assumed present.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/x86/bswap.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavutil/x86/bswap.h b/libavutil/x86/bswap.h index 6840b632cb..c6cf007c86 100644 --- a/libavutil/x86/bswap.h +++ b/libavutil/x86/bswap.h @@ -41,14 +41,7 @@ static av_always_inline av_const unsigned av_bswap16(unsigned x) #define av_bswap32 av_bswap32 static av_always_inline av_const uint32_t av_bswap32(uint32_t x) { -#if HAVE_BSWAP __asm__("bswap %0" : "+r" (x)); -#else - __asm__("rorw $8, %w0 \n\t" - "rorl $16, %0 \n\t" - "rorw $8, %w0" - : "+r"(x)); -#endif return x; } |