summaryrefslogtreecommitdiff
path: root/third_party/aom/av1/common/odintrin.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/aom/av1/common/odintrin.h')
-rw-r--r--third_party/aom/av1/common/odintrin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/aom/av1/common/odintrin.h b/third_party/aom/av1/common/odintrin.h
index 3a778abbda..a50c456c14 100644
--- a/third_party/aom/av1/common/odintrin.h
+++ b/third_party/aom/av1/common/odintrin.h
@@ -89,6 +89,12 @@ extern "C" {
typedef int od_coeff;
+/*This is the strength reduced version of ((_a)/(1 << (_b))).
+ This will not work for _b == 0, however currently this is only used for
+ b == 1 anyway.*/
+# define OD_UNBIASED_RSHIFT32(_a, _b) \
+ (((int32_t)(((uint32_t)(_a) >> (32 - (_b))) + (_a))) >> (_b))
+
#define OD_DIVU_DMAX (1024)
extern uint32_t OD_DIVU_SMALL_CONSTS[OD_DIVU_DMAX][2];