bswap: make generic implementation more compiler-friendly
authorMans Rullgard <mans@mansr.com>
Mon, 12 Dec 2011 00:50:08 +0000 (00:50 +0000)
committerMans Rullgard <mans@mansr.com>
Mon, 12 Dec 2011 12:14:14 +0000 (12:14 +0000)
commitf64c2e710fa1a7b59753224e717f57c48462076f
tree760f8b52024f89e22778498c4f00ceac03f3f01e
parent5695ae46f8771f5c63cb0f62faca6a3d27f7d921
bswap: make generic implementation more compiler-friendly

With these changes, gcc 4.5 and later recognise it as a bswap
and use the proper instructions on ARM and x86.  On x86, the
16-bit bswap is recognised from gcc 4.1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavutil/arm/bswap.h
libavutil/bswap.h
libavutil/x86/bswap.h