Mercurial > libavutil.hg
comparison lls.h @ 914:66b39cb91dde libavutil
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.
author | mru |
---|---|
date | Thu, 29 Apr 2010 14:41:20 +0000 |
parents | bd4052d9050c |
children |
comparison
equal
deleted
inserted
replaced
913:de7b577403bc | 914:66b39cb91dde |
---|