Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
26f01bd1
Commit
26f01bd1
authored
Jul 15, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: PMINUB: port to cpuflags
parent
9ce02e14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
libavcodec/x86/ac3dsp.asm
libavcodec/x86/ac3dsp.asm
+0
-3
libavutil/x86/x86util.asm
libavutil/x86/x86util.asm
+5
-5
No files found.
libavcodec/x86/ac3dsp.asm
View file @
26f01bd1
...
...
@@ -63,12 +63,10 @@ cglobal ac3_exponent_min, 3, 4, 2, exp, reuse_blks, expn, offset
REP_RET
%endmacro
%define PMINUB PMINUB_MMX
%define LOOP_ALIGN
INIT_MMX
mmx
AC3_EXPONENT_MIN
%if HAVE_MMXEXT
%define PMINUB PMINUB_MMXEXT
%define LOOP_ALIGN ALIGN 16
INIT_MMX
mmxext
AC3_EXPONENT_MIN
...
...
@@ -77,7 +75,6 @@ AC3_EXPONENT_MIN
INIT_XMM
ss
e2
AC3_EXPONENT_MIN
%endif
%undef PMINUB
%undef LOOP_ALIGN
;-----------------------------------------------------------------------------
...
...
libavutil/x86/x86util.asm
View file @
26f01bd1
...
...
@@ -530,14 +530,14 @@
movh
[
%
7
+%
8
],
%
4
%endmacro
%macro PMINUB_MMX 3
; dst, src, tmp
%macro PMINUB 3
; dst, src, ignored
%if cpuflag(mmxext)
pminub
%
1
,
%
2
%else
; dst, src, tmp
mova
%
3
,
%
1
psubusb
%
3
,
%
2
psubb
%
1
,
%
3
%endmacro
%macro PMINUB_MMXEXT 3
; dst, src, ignored
pminub
%
1
,
%
2
%endif
%endmacro
%macro SPLATW 2-3 0
...
...
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