Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
87614667
Commit
87614667
authored
May 06, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: dsputil: Move ff_pd assembly constants to the only place they are used
parent
06122c25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
dsputil_mmx.c
libavcodec/x86/dsputil_mmx.c
+0
-3
dsputil_mmx.h
libavcodec/x86/dsputil_mmx.h
+0
-3
lpc.c
libavcodec/x86/lpc.c
+11
-7
No files found.
libavcodec/x86/dsputil_mmx.c
View file @
87614667
...
...
@@ -49,9 +49,6 @@ DECLARE_ALIGNED(16, const xmm_reg, ff_pw_1019) = { 0x03FB03FB03FB03FBULL, 0x03F
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pb_FC
)
=
0xFCFCFCFCFCFCFCFCULL
;
DECLARE_ALIGNED
(
16
,
const
double
,
ff_pd_1
)[
2
]
=
{
1
.
0
,
1
.
0
};
DECLARE_ALIGNED
(
16
,
const
double
,
ff_pd_2
)[
2
]
=
{
2
.
0
,
2
.
0
};
void
ff_put_pixels8_l2_mmxext
(
uint8_t
*
dst
,
uint8_t
*
src1
,
uint8_t
*
src2
,
int
dstStride
,
int
src1Stride
,
int
h
);
...
...
libavcodec/x86/dsputil_mmx.h
View file @
87614667
...
...
@@ -51,9 +51,6 @@ extern const xmm_reg ff_pb_3;
extern
const
xmm_reg
ff_pb_F8
;
extern
const
uint64_t
ff_pb_FC
;
extern
const
double
ff_pd_1
[
2
];
extern
const
double
ff_pd_2
[
2
];
#define SBUTTERFLY(a,b,t,n,m)\
"mov" #m " " #a ", " #t " \n\t"
/* abcd */
\
"punpckl" #n " " #b ", " #a " \n\t"
/* aebf */
\
...
...
libavcodec/x86/lpc.c
View file @
87614667
...
...
@@ -23,8 +23,12 @@
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
#include "libavcodec/lpc.h"
DECLARE_ASM_CONST
(
16
,
double
,
pd_1
)[
2
]
=
{
1
.
0
,
1
.
0
};
DECLARE_ASM_CONST
(
16
,
double
,
pd_2
)[
2
]
=
{
2
.
0
,
2
.
0
};
#if HAVE_SSE2_INLINE
static
void
lpc_apply_welch_window_sse2
(
const
int32_t
*
data
,
int
len
,
...
...
@@ -36,8 +40,8 @@ static void lpc_apply_welch_window_sse2(const int32_t *data, int len,
x86_reg
j
=
n2
*
sizeof
(
int32_t
);
__asm__
volatile
(
"movsd %4, %%xmm7
\n\t
"
"movapd "
MANGLE
(
ff_pd_1
)
", %%xmm6
\n\t
"
"movapd "
MANGLE
(
ff_pd_2
)
", %%xmm5
\n\t
"
"movapd "
MANGLE
(
pd_1
)
", %%xmm6
\n\t
"
"movapd "
MANGLE
(
pd_2
)
", %%xmm5
\n\t
"
"movlhps %%xmm7, %%xmm7
\n\t
"
"subpd %%xmm5, %%xmm7
\n\t
"
"addsd %%xmm6, %%xmm7
\n\t
"
...
...
@@ -86,9 +90,9 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
x86_reg
i
=
-
len
*
sizeof
(
double
);
if
(
j
==
lag
-
2
)
{
__asm__
volatile
(
"movsd "
MANGLE
(
ff_pd_1
)
", %%xmm0
\n\t
"
"movsd "
MANGLE
(
ff_pd_1
)
", %%xmm1
\n\t
"
"movsd "
MANGLE
(
ff_pd_1
)
", %%xmm2
\n\t
"
"movsd "
MANGLE
(
pd_1
)
", %%xmm0
\n\t
"
"movsd "
MANGLE
(
pd_1
)
", %%xmm1
\n\t
"
"movsd "
MANGLE
(
pd_1
)
", %%xmm2
\n\t
"
"1:
\n\t
"
"movapd (%2,%0), %%xmm3
\n\t
"
"movupd -8(%3,%0), %%xmm4
\n\t
"
...
...
@@ -116,8 +120,8 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
);
}
else
{
__asm__
volatile
(
"movsd "
MANGLE
(
ff_pd_1
)
", %%xmm0
\n\t
"
"movsd "
MANGLE
(
ff_pd_1
)
", %%xmm1
\n\t
"
"movsd "
MANGLE
(
pd_1
)
", %%xmm0
\n\t
"
"movsd "
MANGLE
(
pd_1
)
", %%xmm1
\n\t
"
"1:
\n\t
"
"movapd (%3,%0), %%xmm3
\n\t
"
"movupd -8(%4,%0), %%xmm4
\n\t
"
...
...
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