diff options
author | Jingning Han <jingning@google.com> | 2015-07-17 09:20:10 -0700 |
---|---|---|
committer | Jingning Han <jingning@google.com> | 2015-07-17 09:54:02 -0700 |
commit | b8ff84b7f88a022a0b101156fc2a1157eece813f (patch) | |
tree | 68f854d15f3d7e072a7b9c1b9091ba900c53444b /vp9/common/mips/dspr2 | |
parent | 3590a4b437bea6db16e09504b2a9968c398603d9 (diff) | |
download | libvpx-b8ff84b7f88a022a0b101156fc2a1157eece813f.tar libvpx-b8ff84b7f88a022a0b101156fc2a1157eece813f.tar.gz libvpx-b8ff84b7f88a022a0b101156fc2a1157eece813f.tar.bz2 libvpx-b8ff84b7f88a022a0b101156fc2a1157eece813f.zip |
Create common dspr2 header file in vpx_dsp
Move the common prefetch_load/store in dspr2 to header file in
vpx_dsp/mips.
Change-Id: I8acc22970f2a0ef97d73061e39a3ae65c6955eac
Diffstat (limited to 'vp9/common/mips/dspr2')
-rw-r--r-- | vp9/common/mips/dspr2/vp9_common_dspr2.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/vp9/common/mips/dspr2/vp9_common_dspr2.h b/vp9/common/mips/dspr2/vp9_common_dspr2.h index 5668234a4..cd07a566e 100644 --- a/vp9/common/mips/dspr2/vp9_common_dspr2.h +++ b/vp9/common/mips/dspr2/vp9_common_dspr2.h @@ -15,13 +15,13 @@ #include "./vpx_config.h" #include "vpx/vpx_integer.h" +#include "vpx_dsp/mips/common_dspr2.h" #ifdef __cplusplus extern "C" { #endif #if HAVE_DSPR2 -#define CROP_WIDTH 512 extern uint8_t *vp9_ff_cropTbl; #define DCT_CONST_ROUND_SHIFT_TWICE_COSPI_16_64(input) ({ \ @@ -50,40 +50,6 @@ extern uint8_t *vp9_ff_cropTbl; ); \ out; }) -static INLINE void vp9_prefetch_load(const unsigned char *src) { - __asm__ __volatile__ ( - "pref 0, 0(%[src]) \n\t" - : - : [src] "r" (src) - ); -} - -/* prefetch data for store */ -static INLINE void vp9_prefetch_store(unsigned char *dst) { - __asm__ __volatile__ ( - "pref 1, 0(%[dst]) \n\t" - : - : [dst] "r" (dst) - ); -} - -static INLINE void vp9_prefetch_load_streamed(const unsigned char *src) { - __asm__ __volatile__ ( - "pref 4, 0(%[src]) \n\t" - : - : [src] "r" (src) - ); -} - -/* prefetch data for store */ -static INLINE void vp9_prefetch_store_streamed(unsigned char *dst) { - __asm__ __volatile__ ( - "pref 5, 0(%[dst]) \n\t" - : - : [dst] "r" (dst) - ); -} - void vp9_idct32_cols_add_blk_dspr2(int16_t *input, uint8_t *dest, int dest_stride); |