From 5e46be96f86597f31f53a94d1704ffb8299bec32 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Wed, 17 Feb 2010 23:58:59 +0000 Subject: Move NEG_[US]SR32 macros to mathops.h Originally committed as revision 21873 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mathops.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavcodec/mathops.h') diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h index e33f3bf303..85eac484e0 100644 --- a/libavcodec/mathops.h +++ b/libavcodec/mathops.h @@ -131,5 +131,13 @@ if ((y) < (x)) {\ } #endif +#ifndef NEG_SSR32 +# define NEG_SSR32(a,s) ((( int32_t)(a))>>(32-(s))) +#endif + +#ifndef NEG_USR32 +# define NEG_USR32(a,s) (((uint32_t)(a))>>(32-(s))) +#endif + #endif /* AVCODEC_MATHOPS_H */ -- cgit v1.2.3