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
0b093b6f
Commit
0b093b6f
authored
Jan 07, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more gcc bug workarounds
Originally committed as revision 1407 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3df6fa77
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+13
-5
dsputil_mmx_rnd.h
libavcodec/i386/dsputil_mmx_rnd.h
+2
-2
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
0b093b6f
...
...
@@ -790,8 +790,9 @@ void OPNAME ## mpeg4_qpel16_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstSt
"addl %4, %1 \n\t"\
"decl %2 \n\t"\
" jnz 1b \n\t"\
: "+r"(src), "+r"(dst), "+g"(h)\
: "r"(srcStride), "r"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "+a"(src), "+b"(dst), "+c"(h)\
: "d"(srcStride), "S"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "memory"\
);\
}\
\
...
...
@@ -835,6 +836,7 @@ static void OPNAME ## mpeg4_qpel16_h_lowpass_3dnow(uint8_t *dst, uint8_t *src, i
"packuswb %%mm1, %%mm0 \n\t"\
OP_3DNOW(%%mm0, 8(%1), %%mm1, q)\
:: "r"(temp), "r"(dst), "m"(ROUNDER)\
: "memory"\
);\
dst+=dstStride;\
src+=srcStride;\
...
...
@@ -901,8 +903,9 @@ void OPNAME ## mpeg4_qpel8_h_lowpass_mmx2(uint8_t *dst, uint8_t *src, int dstStr
"addl %4, %1 \n\t"\
"decl %2 \n\t"\
" jnz 1b \n\t"\
: "+r"(src), "+r"(dst), "+r"(h)\
: "r"(srcStride), "r"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "+a"(src), "+b"(dst), "+c"(h)\
: "S"(srcStride), "D"(dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(temp), "m"(ROUNDER)\
: "memory"\
);\
}\
\
...
...
@@ -930,6 +933,7 @@ static void OPNAME ## mpeg4_qpel8_h_lowpass_3dnow(uint8_t *dst, uint8_t *src, in
"packuswb %%mm1, %%mm0 \n\t"\
OP_3DNOW(%%mm0, (%1), %%mm1, q)\
:: "r"(temp), "r"(dst), "m"(ROUNDER)\
:"memory"\
);\
dst+=dstStride;\
src+=srcStride;\
...
...
@@ -965,6 +969,7 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
" jnz 1b \n\t"\
: "+r" (src), "+r" (temp_ptr), "+r"(count)\
: "r" (srcStride), "r"(2*8*17), "r"(3*8*17)\
: "memory"\
);\
\
temp_ptr= temp;\
...
...
@@ -1011,6 +1016,7 @@ static void OPNAME ## mpeg4_qpel16_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src,
\
: "+r"(temp_ptr), "+r"(dst), "+r"(count)\
: "r"(dstStride), "r"(2*dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(ROUNDER), "g"(4-14*dstStride)\
:"memory"\
);\
}\
\
...
...
@@ -1035,6 +1041,7 @@ void OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src, int dst
" jnz 1b \n\t"\
: "+r" (src), "+r" (temp_ptr), "+r"(count)\
: "r" (srcStride)\
: "memory"\
);\
\
temp_ptr= temp;\
...
...
@@ -1069,7 +1076,8 @@ void OPNAME ## mpeg4_qpel8_v_lowpass_ ## MMX(uint8_t *dst, uint8_t *src, int dst
\
: "+r"(temp_ptr), "+r"(dst), "+g"(count)\
: "r"(dstStride), "r"(2*dstStride),
/*"m"(ff_pw_20), "m"(ff_pw_3),*/
"m"(ROUNDER), "g"(4-6*dstStride)\
);\
: "memory"\
);\
}\
\
static void OPNAME ## qpel8_mc00_ ## MMX (UINT8 *dst, UINT8 *src, int stride){\
...
...
libavcodec/i386/dsputil_mmx_rnd.h
View file @
0b093b6f
...
...
@@ -85,8 +85,8 @@ static void DEF(put, pixels8_l2)(uint8_t *dst, uint8_t *src1, uint8_t *src2, int
"addl %5, %3
\n\t
"
"subl $4, %0
\n\t
"
"jnz 1b
\n\t
"
:
"+
g"
(
h
),
"+r"
(
src1
),
"+r"
(
src2
),
"+r
"
(
dst
)
:
"
r"
(
src1Stride
),
"r
"
(
dstStride
)
:
"+
a"
(
h
),
"+b"
(
src1
),
"+c"
(
src2
),
"+d
"
(
dst
)
:
"
S"
(
src1Stride
),
"D
"
(
dstStride
)
:
"memory"
);
}
...
...
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