Skip to content

Commit 3a033bc

Browse files
committed
Merge commit '39929e55eb13eeb8dfbe1bc99301fecf6b8942dd'
* commit '39929e55eb13eeb8dfbe1bc99301fecf6b8942dd': ppc: hevcdsp: Use shorthands for vector types Merged-by: Clément Bœsch <[email protected]>
2 parents 40cc925 + 39929e5 commit 3a033bc

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

libavcodec/ppc/hevcdsp.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "libavcodec/hevcdsp.h"
3333

3434
#if HAVE_ALTIVEC
35-
static const vector int16_t trans4[4] = {
35+
static const vec_s16 trans4[4] = {
3636
{ 64, 64, 64, 64, 64, 64, 64, 64 },
3737
{ 83, 36, 83, 36, 83, 36, 83, 36 },
3838
{ 64, -64, 64, -64, 64, -64, 64, -64 },
@@ -44,13 +44,13 @@ static const vec_u8 mask[2] = {
4444
{ 0x04, 0x05, 0x0C, 0x0D, 0x14, 0x15, 0x1C, 0x1D, 0x06, 0x07, 0x0E, 0x0F, 0x16, 0x17, 0x1E, 0x1F },
4545
};
4646

47-
static void transform4x4(vector int16_t src_01, vector int16_t src_23,
48-
vector int32_t res[4], const int shift, int16_t *coeffs)
47+
static void transform4x4(vec_s16 src_01, vec_s16 src_23, vec_s32 res[4],
48+
const int shift, int16_t *coeffs)
4949
{
50-
vector int16_t src_02, src_13;
51-
vector int32_t zero = vec_splat_s32(0);
52-
vector int32_t e0, o0, e1, o1;
53-
vector int32_t add;
50+
vec_s16 src_02, src_13;
51+
vec_s32 zero = vec_splat_s32(0);
52+
vec_s32 e0, o0, e1, o1;
53+
vec_s32 add;
5454

5555
src_13 = vec_mergel(src_01, src_23);
5656
src_02 = vec_mergeh(src_01, src_23);
@@ -70,10 +70,10 @@ static void transform4x4(vector int16_t src_01, vector int16_t src_23,
7070
res[3] = vec_sub(e0, o0);
7171
}
7272

73-
static void scale(vector int32_t res[4], vector int16_t res_packed[2], int shift)
73+
static void scale(vec_s32 res[4], vec_s16 res_packed[2], int shift)
7474
{
7575
int i;
76-
vector unsigned int v_shift = vec_splat_u32(shift);
76+
vec_u32 v_shift = vec_splat_u32(shift);
7777

7878
for (i = 0; i < 4; i++)
7979
res[i] = vec_sra(res[i], v_shift);

libavcodec/ppc/hevcdsp_template.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ static void FUNC(ff_hevc_idct_4x4, BIT_DEPTH)(int16_t *coeffs, int col_limit)
2222
{
2323
const int shift = 7;
2424
const int shift2 = 20 - BIT_DEPTH;
25-
vector int16_t src_01, src_23;
26-
vector int32_t res[4];
27-
vector int16_t res_packed[2];
25+
vec_s16 src_01, src_23;
26+
vec_s32 res[4];
27+
vec_s16 res_packed[2];
2828

2929
src_01 = vec_ld(0, coeffs);
3030
src_23 = vec_ld(16, coeffs);

0 commit comments

Comments
 (0)