Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
75837e9a
Commit
75837e9a
authored
Aug 06, 2014
by
Christophe Gisquet
Committed by
Michael Niedermayer
Aug 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: sbrdsp/fft: reuse ps_neg constant
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
51dd80e7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
constants.c
libavcodec/x86/constants.c
+2
-0
constants.h
libavcodec/x86/constants.h
+2
-0
fft.asm
libavcodec/x86/fft.asm
+4
-3
sbrdsp.asm
libavcodec/x86/sbrdsp.asm
+1
-1
No files found.
libavcodec/x86/constants.c
View file @
75837e9a
...
...
@@ -56,3 +56,5 @@ DECLARE_ALIGNED(32, const ymm_reg, ff_pb_3) = { 0x0303030303030303ULL, 0x030
0x0303030303030303ULL
,
0x0303030303030303ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pb_80
)
=
{
0x8080808080808080ULL
,
0x8080808080808080ULL
};
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_pb_FC
)
=
0xFCFCFCFCFCFCFCFCULL
;
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_ps_neg
)
=
{
0x8000000080000000ULL
,
0x8000000080000000ULL
};
libavcodec/x86/constants.h
View file @
75837e9a
...
...
@@ -55,4 +55,6 @@ extern const xmm_reg ff_pb_80;
extern
const
xmm_reg
ff_pb_F8
;
extern
const
uint64_t
ff_pb_FC
;
extern
const
xmm_reg
ff_ps_neg
;
#endif
/* AVCODEC_X86_CONSTANTS_H */
libavcodec/x86/fft.asm
View file @
75837e9a
...
...
@@ -68,9 +68,10 @@ perm1: dd 0x00, 0x02, 0x03, 0x01, 0x03, 0x00, 0x02, 0x01
perm2
:
dd
0x00
,
0x01
,
0x02
,
0x03
,
0x01
,
0x00
,
0x02
,
0x03
ps_p1p1m1p1root2
:
dd
1
.
0
,
1
.
0
,
-
1
.
0
,
1
.
0
,
M_SQRT1_2
,
M_SQRT1_2
,
M_SQRT1_2
,
M_SQRT1_2
ps_m1m1p1m1p1m1m1m1
:
dd
1
<<
31
,
1
<<
31
,
0
,
1
<<
31
,
0
,
1
<<
31
,
1
<<
31
,
1
<<
31
ps_m1m1m1m1
:
times
4
dd
1
<<
31
ps_m1p1
:
dd
1
<<
31
,
0
cextern
ps_neg
%assign
i
16
%rep
13
cextern
cos_
%
+
i
...
...
@@ -685,7 +686,7 @@ cglobal imdct_calc, 3,5,3
mov
r2
,
r3
sub
r3
,
mmsize
neg
r2
mova
m2
,
[
ps_
m1m1m1m1
]
mova
m2
,
[
ps_
neg
]
.
loop
:
%if
mmsize
==
8
PSWAPD
m0
,
[
r1
+
r3
]
...
...
@@ -998,7 +999,7 @@ cglobal imdct_half, 3,12,8; FFTContext *s, FFTSample *output, const FFTSample *i
sub
r4
,
r3
%endif
%if
notcpuflag
(
3
dnowext
)
&&
mmsize
==
8
movd
m7
,
[
ps_
m1m1m1m1
]
movd
m7
,
[
ps_
neg
]
%endif
.
pre
:
%if
ARCH_X86_64
==
0
...
...
libavcodec/x86/sbrdsp.asm
View file @
75837e9a
...
...
@@ -25,13 +25,13 @@ SECTION_RODATA
; mask equivalent for multiply by -1.0 1.0
ps_mask
times
2
dd
1
<<
31
,
0
ps_mask2
times
2
dd
0
,
1
<<
31
ps_neg
times
4
dd
1
<<
31
ps_noise0
times
2
dd
1
.
0
,
0
.
0
,
ps_noise2
times
2
dd
-
1
.
0
,
0
.
0
ps_noise13
dd
0
.
0
,
1
.
0
,
0
.
0
,
-
1
.
0
dd
0
.
0
,
-
1
.
0
,
0
.
0
,
1
.
0
dd
0
.
0
,
1
.
0
,
0
.
0
,
-
1
.
0
cextern
sbr_noise_table
cextern
ps_neg
SECTION_TEXT
...
...
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