1 /*
2  *  Copyright (c) 2018 The WebM project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef VPX_VPX_DSP_PPC_INV_TXFM_VSX_H_
12 #define VPX_VPX_DSP_PPC_INV_TXFM_VSX_H_
13 
14 #include "vpx_dsp/ppc/types_vsx.h"
15 
16 void vpx_round_store4x4_vsx(int16x8_t *in, int16x8_t *out, uint8_t *dest,
17                             int stride);
18 void vpx_idct4_vsx(int16x8_t *in, int16x8_t *out);
19 void vp9_iadst4_vsx(int16x8_t *in, int16x8_t *out);
20 
21 void vpx_round_store8x8_vsx(int16x8_t *in, uint8_t *dest, int stride);
22 void vpx_idct8_vsx(int16x8_t *in, int16x8_t *out);
23 void vp9_iadst8_vsx(int16x8_t *in, int16x8_t *out);
24 
25 #define LOAD_INPUT16(load, source, offset, step, in) \
26   in[0] = load(offset, source);                      \
27   in[1] = load((step) + (offset), source);           \
28   in[2] = load(2 * (step) + (offset), source);       \
29   in[3] = load(3 * (step) + (offset), source);       \
30   in[4] = load(4 * (step) + (offset), source);       \
31   in[5] = load(5 * (step) + (offset), source);       \
32   in[6] = load(6 * (step) + (offset), source);       \
33   in[7] = load(7 * (step) + (offset), source);       \
34   in[8] = load(8 * (step) + (offset), source);       \
35   in[9] = load(9 * (step) + (offset), source);       \
36   in[10] = load(10 * (step) + (offset), source);     \
37   in[11] = load(11 * (step) + (offset), source);     \
38   in[12] = load(12 * (step) + (offset), source);     \
39   in[13] = load(13 * (step) + (offset), source);     \
40   in[14] = load(14 * (step) + (offset), source);     \
41   in[15] = load(15 * (step) + (offset), source);
42 
43 void vpx_round_store16x16_vsx(int16x8_t *src0, int16x8_t *src1, uint8_t *dest,
44                               int stride);
45 void vpx_idct16_vsx(int16x8_t *src0, int16x8_t *src1);
46 void vpx_iadst16_vsx(int16x8_t *src0, int16x8_t *src1);
47 
48 #endif  // VPX_VPX_DSP_PPC_INV_TXFM_VSX_H_
49