« Previous | Next » 

Revision 547b7bcb

ID547b7bcbb77d7f5b2cbcbce8d734ea43617194ab
Parent faa2989e
Child ff866063

Added by Måns Rullgård over 10 years ago

bswap: add macros to byteswap constants

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

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences