diff options
Diffstat (limited to 'libavcodec/mathops.h')
-rw-r--r-- | libavcodec/mathops.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |