[FFmpeg-devel] m68k code for bswap
Sun Jul 5 05:07:08 CEST 2009
Under 68060 at 50MHz there is also no different (bswap_32 c/asm) in the speed with ape test file.
Maybe this routine needs to be executed more times to see any different?
Here is code I used:
static av_always_inline av_const uint32_t bswap_32(uint32_t x)
Output asm from original C version:
Output asm from asm-optimized version:
rol.w #8,d0;swap d0;rol.w #8,d0;
I think it would be nice to have a simple benchmark which can execute bswap_16/bswap_32/bswap_64
rountines as many times as user want and maybe this benchmark can be included in "test" dir with FFmpeg.
More information about the ffmpeg-devel