Mercurial > libavcodec.hg
diff mathops.h @ 11200:cd8a77473dd1 libavcodec
Move NEG_[US]SR32 macros to mathops.h
author | mru |
---|---|
date | Wed, 17 Feb 2010 23:58:59 +0000 |
parents | 5f2c4bcf6e6e |
children | c975efe95584 |
line wrap: on
line diff
--- a/mathops.h Wed Feb 17 23:26:48 2010 +0000 +++ b/mathops.h Wed Feb 17 23:58:59 2010 +0000 @@ -131,5 +131,13 @@ } #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 */