summaryrefslogtreecommitdiffstats
path: root/libavcodec/mathops.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-02-17 23:58:59 +0000
committerMåns Rullgård <mans@mansr.com>2010-02-17 23:58:59 +0000
commit5e46be96f86597f31f53a94d1704ffb8299bec32 (patch)
tree9cc09b7172fd4098dcb2ae8c7b78a8ab39034aa0 /libavcodec/mathops.h
parentdc9e57a878107be304398387dc5e846346ef70c6 (diff)
downloadffmpeg-streaming-5e46be96f86597f31f53a94d1704ffb8299bec32.zip
ffmpeg-streaming-5e46be96f86597f31f53a94d1704ffb8299bec32.tar.gz
Move NEG_[US]SR32 macros to mathops.h
Originally committed as revision 21873 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r--libavcodec/mathops.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/mathops.h b/libavcodec/mathops.h
index e33f3bf..85eac48 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 */
OpenPOWER on IntegriCloud