Replace divides by small values with multiplies.
This ports the OD_DIVU_SMALL code from Daala to AOM so that divides by constants smaller than OD_DIVU_DMAX (1024) are done using a multiply. Added a unit test for OD_DIVU_SMALL in test/divu_small_test.cc. Change-Id: Id9fee172d54477355571c5d6c12c584fb65769e5
Showing
- test/acm_random.h 5 additions, 0 deletionstest/acm_random.h
- test/divu_small_test.cc 52 additions, 0 deletionstest/divu_small_test.cc
- test/test.mk 1 addition, 0 deletionstest/test.mk
- vp10/common/odintrin.c 382 additions, 0 deletionsvp10/common/odintrin.c
- vp10/common/odintrin.h 12 additions, 1 deletionvp10/common/odintrin.h
- vp10/vp10_common.mk 2 additions, 1 deletionvp10/vp10_common.mk
Loading
Please register or sign in to comment