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
3334cbec
Commit
3334cbec
authored
May 06, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: dsputil: Remove unused MOVQ_BONE macro
parent
63bac48f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
constants.c
libavcodec/x86/constants.c
+0
-1
dsputil_mmx.h
libavcodec/x86/dsputil_mmx.h
+0
-8
No files found.
libavcodec/x86/constants.c
View file @
3334cbec
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
#include "libavutil/mem.h"
#include "libavutil/mem.h"
#include "libavutil/x86/asm.h" // for xmm_reg
#include "libavutil/x86/asm.h" // for xmm_reg
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_bone
)
=
0x0101010101010101ULL
;
DECLARE_ALIGNED
(
8
,
const
uint64_t
,
ff_wtwo
)
=
0x0002000200020002ULL
;
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_1
)
=
{
0x0001000100010001ULL
,
0x0001000100010001ULL
};
...
...
libavcodec/x86/dsputil_mmx.h
View file @
3334cbec
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
#include "libavcodec/dsputil.h"
#include "libavcodec/dsputil.h"
#include "libavutil/x86/asm.h"
#include "libavutil/x86/asm.h"
extern
const
uint64_t
ff_bone
;
extern
const
uint64_t
ff_wtwo
;
extern
const
uint64_t
ff_wtwo
;
extern
const
xmm_reg
ff_pw_3
;
extern
const
xmm_reg
ff_pw_3
;
...
@@ -81,17 +80,10 @@ extern const double ff_pd_2[2];
...
@@ -81,17 +80,10 @@ extern const double ff_pd_2[2];
"paddb %%"#regd", %%"#regd" \n\t" ::)
"paddb %%"#regd", %%"#regd" \n\t" ::)
#ifndef PIC
#ifndef PIC
#define MOVQ_BONE(regd) __asm__ volatile ("movq %0, %%"#regd" \n\t" :: "m"(ff_bone))
#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_wtwo))
#else
#else
// for shared library it's better to use this way for accessing constants
// for shared library it's better to use this way for accessing constants
// pcmpeqd -> -1
// pcmpeqd -> -1
#define MOVQ_BONE(regd) \
__asm__ volatile ( \
"pcmpeqd %%"#regd", %%"#regd" \n\t" \
"psrlw $15, %%"#regd" \n\t" \
"packuswb %%"#regd", %%"#regd" \n\t" ::)
#define MOVQ_WTWO(regd) \
#define MOVQ_WTWO(regd) \
__asm__ volatile ( \
__asm__ volatile ( \
"pcmpeqd %%"#regd", %%"#regd" \n\t" \
"pcmpeqd %%"#regd", %%"#regd" \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