• Måns Rullgård's avatar
    bswap: add macros to byteswap constants · 547b7bcb
    Måns Rullgård authored
    The normal byteswap functions might use inline asm which is suboptimal
    with constants (and cannot be used in static initialisers), so special
    macros for constants only is needed.
    
    We should not rely on the gcc __builtin_constant_p() test since it is
    not always available.
    
    Originally committed as revision 22990 to svn://svn.ffmpeg.org/ffmpeg/trunk
    547b7bcb