Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
4750500b
Commit
4750500b
authored
Oct 19, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/ffmpeg-macosx-intel-mmx.patch: Fix the patch.
parent
93566e29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
33 deletions
+37
-33
extras/contrib/src/Patches/ffmpeg-macosx-intel-mmx.patch
extras/contrib/src/Patches/ffmpeg-macosx-intel-mmx.patch
+37
-33
No files found.
extras/contrib/src/Patches/ffmpeg-macosx-intel-mmx.patch
View file @
4750500b
Index: ffmpeg/libavcodec/i386/dsputil_mmx.c
Index: ffmpeg/libavcodec/i386/dsputil_mmx.c
===================================================================
===================================================================
--- ffmpeg/libavcodec/i386/dsputil_mmx.c
(revision 10759)
--- ffmpeg/libavcodec/i386/dsputil_mmx.c (revision 10759)
+++ ffmpeg/libavcodec/i386/dsputil_mmx.c
(working copy)
+++ ffmpeg/libavcodec/i386/dsputil_mmx.c (working copy)
@@ -29
67,7 +2967,6
@@
@@ -29
78,6 +2978,7
@@
double c = 2.0 / (len-1.0);
::"m"(c), "m"(*ff_pd_1), "m"(*ff_pd_2)
int n2 = len>>1
;
)
;
long i = -n2*sizeof(int32_t);
#define WELCH(MOVPD)\
- long j = n2*sizeof(int32_t);
+ do {\
asm volatile(
asm volatile(\
"movsd %0, %%xmm7 \n\t"
"1: \n\t"\
"movapd %1, %%xmm6 \n\t"
"movapd %%xmm7, %%xmm1 \n\t"\
@@ -2985,
17 +2984,18
@@
@@ -2985,
8 +2986,12
@@
"movapd %%xmm6, %%xmm0 \n\t"\
"movapd %%xmm6, %%xmm0 \n\t"\
"subpd %%xmm1, %%xmm0 \n\t"\
"subpd %%xmm1, %%xmm0 \n\t"\
"pshufd $0x4e, %%xmm0, %%xmm1 \n\t"\
"pshufd $0x4e, %%xmm0, %%xmm1 \n\t"\
- "cvtpi2pd (%4,%0), %%xmm2 \n\t"\
- "cvtpi2pd (%4,%0), %%xmm2 \n\t"\
- "cvtpi2pd (%5,%1), %%xmm3 \n\t"\
- "cvtpi2pd (%5,%1), %%xmm3 \n\t"\
+ "cvtpi2pd (%3,%0), %%xmm2 \n\t"\
+ "cvtpi2pd (%2,%0), %%xmm2 \n\t"\
"mulpd %%xmm0, %%xmm2 \n\t"\
+ "cvtpi2pd (%3,%1), %%xmm3 \n\t"\
+ "movapd %%xmm2, (%1,%0,2) \n\t"\
+ :"+&r"(i), "+&r"(j)\
+ "negl %0\n\t"\
+ :"r"(data+n2), "r"(data+len-2-n2)\
+ "cvtpi2pd (%4,%0), %%xmm3 \n\t"\
+ );\
"mulpd %%xmm1, %%xmm3 \n\t"\
+ asm volatile(\
- "movapd %%xmm2, (%2,%0,2) \n\t"\
"mulpd %%xmm0, %%xmm2 \n\t"\
- MOVPD" %%xmm3, (%3,%1,2) \n\t"\
"mulpd %%xmm1, %%xmm3 \n\t"\
+ MOVPD" %%xmm3, (%2,%0,2) \n\t"\
"movapd %%xmm2, (%2,%0,2) \n\t"\
"subpd %%xmm5, %%xmm7 \n\t"\
@@ -2996,9 +3001,9 @@
- "sub $8, %1 \n\t"\
"add $8, %0 \n\t"\
+ "negl %0\n\t"\
"jl 1b \n\t"\
"add $8, %0 \n\t"\
:"+&r"(i), "+&r"(j)\
"jl 1b \n\t"\
- :"r"(w_data+n2), "r"(w_data+len-2-n2),\
- :"+&r"(i), "+&r"(j)\
- "r"(data+n2), "r"(data+len-2-n2)\
+ :"+&r"(i)\
- );
:"r"(w_data+n2), "r"(w_data+len-2-n2),\
+ :"r"(w_data+n2), "r"(w_data+len-2-n2)\
"r"(data+n2), "r"(data+len-2-n2)\
+ );\
);
+ } while(0);
if(len&1)
WELCH("movupd")
else
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