mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Add a macro to pack 4 bytes into native byte-order so they can be written
at once using a single 32-bit store. Originally committed as revision 23715 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
caaf098cec
commit
b39a2d19d4
@ -146,5 +146,13 @@ if ((y) < (x)) {\
|
|||||||
# define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s)))
|
# define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s)))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef PACK4x8
|
||||||
|
# if HAVE_BIGENDIAN
|
||||||
|
# define PACK4x8(a,b,c,d) (((a) << 24) | ((b) << 16) | ((c) << 8) | (d))
|
||||||
|
# else
|
||||||
|
# define PACK4x8(a,b,c,d) (((d) << 24) | ((c) << 16) | ((b) << 8) | (a))
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* AVCODEC_MATHOPS_H */
|
#endif /* AVCODEC_MATHOPS_H */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user