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
71db2d08
Commit
71db2d08
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: better share ff_pw_2
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4e128ab0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
constants.c
libavcodec/x86/constants.c
+0
-2
constants.h
libavcodec/x86/constants.h
+1
-2
dwt_yasm.asm
libavcodec/x86/dwt_yasm.asm
+2
-1
inline_asm.h
libavcodec/x86/inline_asm.h
+1
-1
No files found.
libavcodec/x86/constants.c
View file @
71db2d08
...
...
@@ -22,8 +22,6 @@
#include "libavutil/x86/asm.h" // for xmm_reg
#include "constants.h"
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_wtwo
)
=
0x0002000200020002ULL
;
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_1
)
=
{
0x0001000100010001ULL
,
0x0001000100010001ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_2
)
=
{
0x0002000200020002ULL
,
0x0002000200020002ULL
};
DECLARE_ALIGNED
(
16
,
const
xmm_reg
,
ff_pw_3
)
=
{
0x0003000300030003ULL
,
0x0003000300030003ULL
};
...
...
libavcodec/x86/constants.h
View file @
71db2d08
...
...
@@ -25,8 +25,7 @@
#include "libavutil/x86/asm.h"
extern
const
uint64_t
ff_wtwo
;
extern
const
xmm_reg
ff_pw_2
;
extern
const
xmm_reg
ff_pw_3
;
extern
const
xmm_reg
ff_pw_4
;
extern
const
xmm_reg
ff_pw_5
;
...
...
libavcodec/x86/dwt_yasm.asm
View file @
71db2d08
...
...
@@ -23,11 +23,12 @@
SECTION_RODATA
pw_1
:
times
8
dw
1
pw_2
:
times
8
dw
2
pw_8
:
times
8
dw
8
pw_16
:
times
8
dw
16
pw_1991
:
times
4
dw
9
,
-
1
cextern
pw_2
section
.
text
; %1 -= (%2 + %3 + 2)>>2 %4 is pw_2
...
...
libavcodec/x86/inline_asm.h
View file @
71db2d08
...
...
@@ -37,7 +37,7 @@
"paddb %%"#regd", %%"#regd" \n\t" ::)
#ifndef PIC
#define MOVQ_WTWO(regd) __asm__ volatile ("movq %0, %%"#regd" \n\t" :: "m"(ff_
wtwo
))
#define MOVQ_WTWO(regd) __asm__ volatile ("movq %0, %%"#regd" \n\t" :: "m"(ff_
pw_2
))
#else
// for shared library it's better to use this way for accessing constants
// pcmpeqd -> -1
...
...
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