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
bddcf758
Commit
bddcf758
authored
Sep 20, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/checkasm/vp9dsp: Add () to protect macro arguments
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
b0743674
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vp9dsp.c
tests/checkasm/vp9dsp.c
+2
-2
No files found.
tests/checkasm/vp9dsp.c
View file @
bddcf758
...
...
@@ -102,7 +102,7 @@ static void check_ipred(void)
((uint16_t *)buf0)[(a) + (b) * jstride] = c; \
} \
} while (0)
#define setdx(a,b,c,d) setpx(a,b,
c
-(d)+(rnd()%((d)*2+1)))
#define setdx(a,b,c,d) setpx(a,b,
(c)
-(d)+(rnd()%((d)*2+1)))
#define setsx(a,b,c,d) setdx(a,b,c,(d) << (bit_depth - 8))
#define randomize_buffers(bidx, lineoff, str) \
do { \
...
...
@@ -220,7 +220,7 @@ static void check_loopfilter()
randomize_buffers
(
0
,
0
,
16
);
randomize_buffers
(
1
,
8
,
16
);
memcpy
(
buf1
-
midoff
,
buf0
-
midoff
,
16
*
16
*
SIZEOF_PIXEL
);
#define M(a) ((
a[1] << 8) | a
[0])
#define M(a) ((
(a)[1] << 8) | (a)
[0])
call_ref
(
buf0
,
16
*
SIZEOF_PIXEL
,
M
(
E
),
M
(
I
),
M
(
H
));
call_new
(
buf1
,
16
*
SIZEOF_PIXEL
,
M
(
E
),
M
(
I
),
M
(
H
));
if
(
memcmp
(
buf0
-
midoff
,
buf1
-
midoff
,
16
*
16
*
SIZEOF_PIXEL
))
...
...
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