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
db3f61a0
Commit
db3f61a0
authored
Jan 10, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: dsputil_init: Drop some unnecessary parentheses
parent
441b0939
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
dsputil_init.c
libavcodec/x86/dsputil_init.c
+30
-30
No files found.
libavcodec/x86/dsputil_init.c
View file @
db3f61a0
...
@@ -179,8 +179,8 @@ static void OPNAME ## qpel8_mc11_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -179,8 +179,8 @@ static void OPNAME ## qpel8_mc11_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half) + 64;
\
uint8_t *const halfH = (
uint8_t *) half + 64;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, 8, \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, 8, \
...
@@ -194,8 +194,8 @@ static void OPNAME ## qpel8_mc31_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -194,8 +194,8 @@ static void OPNAME ## qpel8_mc31_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half) + 64;
\
uint8_t *const halfH = (
uint8_t *) half + 64;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
...
@@ -209,8 +209,8 @@ static void OPNAME ## qpel8_mc13_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -209,8 +209,8 @@ static void OPNAME ## qpel8_mc13_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half) + 64;
\
uint8_t *const halfH = (
uint8_t *) half + 64;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, 8, \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, 8, \
...
@@ -224,8 +224,8 @@ static void OPNAME ## qpel8_mc33_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -224,8 +224,8 @@ static void OPNAME ## qpel8_mc33_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half) + 64;
\
uint8_t *const halfH = (
uint8_t *) half + 64;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
...
@@ -239,8 +239,8 @@ static void OPNAME ## qpel8_mc21_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -239,8 +239,8 @@ static void OPNAME ## qpel8_mc21_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half) + 64;
\
uint8_t *const halfH = (
uint8_t *) half + 64;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
...
@@ -252,8 +252,8 @@ static void OPNAME ## qpel8_mc23_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -252,8 +252,8 @@ static void OPNAME ## qpel8_mc23_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half) + 64;
\
uint8_t *const halfH = (
uint8_t *) half + 64;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
ff_put ## RND ## mpeg4_qpel8_v_lowpass_ ## MMX(halfHV, halfH, 8, 8);\
...
@@ -265,7 +265,7 @@ static void OPNAME ## qpel8_mc12_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -265,7 +265,7 @@ static void OPNAME ## qpel8_mc12_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half);
\
uint8_t *const halfH = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src, halfH, \
...
@@ -278,7 +278,7 @@ static void OPNAME ## qpel8_mc32_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -278,7 +278,7 @@ static void OPNAME ## qpel8_mc32_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[8 + 9]; \
uint64_t half[8 + 9]; \
uint8_t *const halfH = (
(uint8_t *) half);
\
uint8_t *const halfH = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
ff_put ## RND ## pixels8_l2_ ## MMX(halfH, src + 1, halfH, 8, \
...
@@ -291,7 +291,7 @@ static void OPNAME ## qpel8_mc22_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -291,7 +291,7 @@ static void OPNAME ## qpel8_mc22_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[9]; \
uint64_t half[9]; \
uint8_t *const halfH = (
(uint8_t *) half);
\
uint8_t *const halfH = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
ff_put ## RND ## mpeg4_qpel8_h_lowpass_ ## MMX(halfH, src, 8, \
stride, 9); \
stride, 9); \
ff_ ## OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(dst, halfH, \
ff_ ## OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(dst, halfH, \
...
@@ -366,8 +366,8 @@ static void OPNAME ## qpel16_mc11_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -366,8 +366,8 @@ static void OPNAME ## qpel16_mc11_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[16 * 2 + 17 * 2]; \
uint64_t half[16 * 2 + 17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half) + 256;
\
uint8_t *const halfH = (
uint8_t *) half + 256;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
...
@@ -382,8 +382,8 @@ static void OPNAME ## qpel16_mc31_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -382,8 +382,8 @@ static void OPNAME ## qpel16_mc31_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[16 * 2 + 17 * 2]; \
uint64_t half[16 * 2 + 17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half) + 256;
\
uint8_t *const halfH = (
uint8_t *) half + 256;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
...
@@ -398,8 +398,8 @@ static void OPNAME ## qpel16_mc13_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -398,8 +398,8 @@ static void OPNAME ## qpel16_mc13_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[16 * 2 + 17 * 2]; \
uint64_t half[16 * 2 + 17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half) + 256;
\
uint8_t *const halfH = (
uint8_t *) half + 256;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
...
@@ -414,8 +414,8 @@ static void OPNAME ## qpel16_mc33_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -414,8 +414,8 @@ static void OPNAME ## qpel16_mc33_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[16 * 2 + 17 * 2]; \
uint64_t half[16 * 2 + 17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half) + 256;
\
uint8_t *const halfH = (
uint8_t *) half + 256;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
...
@@ -430,8 +430,8 @@ static void OPNAME ## qpel16_mc21_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -430,8 +430,8 @@ static void OPNAME ## qpel16_mc21_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[16 * 2 + 17 * 2]; \
uint64_t half[16 * 2 + 17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half) + 256;
\
uint8_t *const halfH = (
uint8_t *) half + 256;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
...
@@ -444,8 +444,8 @@ static void OPNAME ## qpel16_mc23_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -444,8 +444,8 @@ static void OPNAME ## qpel16_mc23_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[16 * 2 + 17 * 2]; \
uint64_t half[16 * 2 + 17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half) + 256;
\
uint8_t *const halfH = (
uint8_t *) half + 256;
\
uint8_t *const halfHV = (
(uint8_t *) half);
\
uint8_t *const halfHV = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
ff_put ## RND ## mpeg4_qpel16_v_lowpass_ ## MMX(halfHV, halfH, \
...
@@ -458,7 +458,7 @@ static void OPNAME ## qpel16_mc12_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -458,7 +458,7 @@ static void OPNAME ## qpel16_mc12_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[17 * 2]; \
uint64_t half[17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half);
\
uint8_t *const halfH = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src, halfH, 16, \
...
@@ -471,7 +471,7 @@ static void OPNAME ## qpel16_mc32_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -471,7 +471,7 @@ static void OPNAME ## qpel16_mc32_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[17 * 2]; \
uint64_t half[17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half);
\
uint8_t *const halfH = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
ff_put ## RND ## pixels16_l2_ ## MMX(halfH, src + 1, halfH, 16, \
...
@@ -484,7 +484,7 @@ static void OPNAME ## qpel16_mc22_ ## MMX(uint8_t *dst, uint8_t *src, \
...
@@ -484,7 +484,7 @@ static void OPNAME ## qpel16_mc22_ ## MMX(uint8_t *dst, uint8_t *src, \
ptrdiff_t stride) \
ptrdiff_t stride) \
{ \
{ \
uint64_t half[17 * 2]; \
uint64_t half[17 * 2]; \
uint8_t *const halfH = (
(uint8_t *) half);
\
uint8_t *const halfH = (
uint8_t *) half;
\
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
ff_put ## RND ## mpeg4_qpel16_h_lowpass_ ## MMX(halfH, src, 16, \
stride, 17); \
stride, 17); \
ff_ ## OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(dst, halfH, \
ff_ ## OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(dst, halfH, \
...
...
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