Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c81d1e23
Commit
c81d1e23
authored
Apr 27, 2012
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: add const where needed in scalarproduct_int16_altivec()
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
ce82dad7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
int_altivec.c
libavcodec/ppc/int_altivec.c
+4
-3
No files found.
libavcodec/ppc/int_altivec.c
View file @
c81d1e23
...
...
@@ -79,17 +79,18 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2,
return
u
.
score
[
3
];
}
static
int32_t
scalarproduct_int16_altivec
(
int16_t
*
v1
,
const
int16_t
*
v2
,
static
int32_t
scalarproduct_int16_altivec
(
const
int16_t
*
v1
,
const
int16_t
*
v2
,
int
order
)
{
int
i
;
LOAD_ZERO
;
register
vec_s16
vec1
,
*
pv
;
const
vec_s16
*
pv
;
register
vec_s16
vec1
;
register
vec_s32
res
=
vec_splat_s32
(
0
),
t
;
int32_t
ires
;
for
(
i
=
0
;
i
<
order
;
i
+=
8
){
pv
=
(
vec_s16
*
)
v1
;
pv
=
(
const
vec_s16
*
)
v1
;
vec1
=
vec_perm
(
pv
[
0
],
pv
[
1
],
vec_lvsl
(
0
,
v1
));
t
=
vec_msum
(
vec1
,
vec_ld
(
0
,
v2
),
zero_s32v
);
res
=
vec_sums
(
t
,
res
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment