Define macro AV_NE() and use it in libavdevice.

Help further refactoring.

Originally committed as revision 24814 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini
2010-08-17 18:25:34 +00:00
parent 3f52a907e3
commit 4f2d2e4ed9
4 changed files with 10 additions and 11 deletions

View File

@@ -35,6 +35,13 @@
#include <stdlib.h>
#include <string.h>
#include "attributes.h"
#include "avconfig.h"
#if AV_HAVE_BIGENDIAN
# define AV_NE(be, le) be
#else
# define AV_NE(be, le) le
#endif
//rounded division & shift
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))