Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
8bd6f882
Commit
8bd6f882
authored
Jan 15, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: dsputil: Drop some unnecessary parentheses
parent
022184a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
dsputil_altivec.c
libavcodec/ppc/dsputil_altivec.c
+6
-6
dsputil_ppc.c
libavcodec/ppc/dsputil_ppc.c
+3
-3
No files found.
libavcodec/ppc/dsputil_altivec.c
View file @
8bd6f882
...
...
@@ -612,14 +612,14 @@ static void add_bytes_altivec(uint8_t *dst, uint8_t *src, int w)
register
vector
unsigned
char
vdst
,
vsrc
;
/* dst and src are 16 bytes-aligned (guaranteed). */
for
(
i
=
0
;
(
i
+
15
)
<
w
;
i
+=
16
)
{
for
(
i
=
0
;
i
+
15
<
w
;
i
+=
16
)
{
vdst
=
vec_ld
(
i
,
(
unsigned
char
*
)
dst
);
vsrc
=
vec_ld
(
i
,
(
unsigned
char
*
)
src
);
vdst
=
vec_add
(
vsrc
,
vdst
);
vec_st
(
vdst
,
i
,
(
unsigned
char
*
)
dst
);
}
/* If w is not a multiple of 16. */
for
(;
(
i
<
w
)
;
i
++
)
for
(;
i
<
w
;
i
++
)
dst
[
i
]
=
src
[
i
];
}
...
...
@@ -658,10 +658,10 @@ static int hadamard8_diff8x8_altivec(/* MpegEncContext */ void *s, uint8_t *dst,
register vector signed short srcV, dstV; \
register vector signed short but0, but1, but2, op1, op2, op3; \
src1 = vec_ld(stride * i, src); \
src2 = vec_ld(
(stride * i) + 15, src);
\
src2 = vec_ld(
stride * i + 15, src);
\
srcO = vec_perm(src1, src2, vec_lvsl(stride * i, src)); \
dst1 = vec_ld(stride * i, dst); \
dst2 = vec_ld(
(stride * i) + 15, dst);
\
dst2 = vec_ld(
stride * i + 15, dst);
\
dstO = vec_perm(dst1, dst2, vec_lvsl(stride * i, dst)); \
/* Promote the unsigned chars to signed shorts. */
\
/* We're in the 8x8 function, we only care for the first 8. */
\
...
...
@@ -828,10 +828,10 @@ static int hadamard8_diff16x8_altivec(/* MpegEncContext */ void *s, uint8_t *dst
op3S __asm__ ("v30"); \
\
src1 = vec_ld(stride * i, src); \
src2 = vec_ld(
(stride * i) + 16, src);
\
src2 = vec_ld(
stride * i + 16, src);
\
srcO = vec_perm(src1, src2, vec_lvsl(stride * i, src)); \
dst1 = vec_ld(stride * i, dst); \
dst2 = vec_ld(
(stride * i) + 16, dst);
\
dst2 = vec_ld(
stride * i + 16, dst);
\
dstO = vec_perm(dst1, dst2, vec_lvsl(stride * i, dst)); \
/* Promote the unsigned chars to signed shorts. */
\
srcV = (vector signed short) vec_mergeh((vector signed char) vzero, \
...
...
libavcodec/ppc/dsputil_ppc.c
View file @
8bd6f882
...
...
@@ -51,7 +51,7 @@
*/
static
void
clear_blocks_dcbz32_ppc
(
int16_t
*
blocks
)
{
register
int
misal
=
(
(
unsigned
long
)
blocks
&
0x00000010
)
;
register
int
misal
=
(
unsigned
long
)
blocks
&
0x00000010
;
register
int
i
=
0
;
if
(
misal
)
{
...
...
@@ -77,7 +77,7 @@ static void clear_blocks_dcbz32_ppc(int16_t *blocks)
#if HAVE_DCBZL
static
void
clear_blocks_dcbz128_ppc
(
int16_t
*
blocks
)
{
register
int
misal
=
(
(
unsigned
long
)
blocks
&
0x0000007f
)
;
register
int
misal
=
(
unsigned
long
)
blocks
&
0x0000007f
;
register
int
i
=
0
;
if
(
misal
)
{
...
...
@@ -113,7 +113,7 @@ static long check_dcbzl_effect(void)
if
(
!
fakedata
)
return
0L
;
fakedata_middle
=
(
fakedata
+
512
)
;
fakedata_middle
=
fakedata
+
512
;
memset
(
fakedata
,
0xFF
,
1024
);
...
...
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