Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
3334cbec
Commit
3334cbec
authored
11 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
x86: dsputil: Remove unused MOVQ_BONE macro
parent
63bac48f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavcodec/x86/constants.c
+0
-1
0 additions, 1 deletion
libavcodec/x86/constants.c
libavcodec/x86/dsputil_mmx.h
+0
-8
0 additions, 8 deletions
libavcodec/x86/dsputil_mmx.h
with
0 additions
and
9 deletions
libavcodec/x86/constants.c
+
0
−
1
View file @
3334cbec
...
...
@@ -21,7 +21,6 @@
#include
"libavutil/mem.h"
#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
(
16
,
const
xmm_reg
,
ff_pw_1
)
=
{
0x0001000100010001ULL
,
0x0001000100010001ULL
};
...
...
This diff is collapsed.
Click to expand it.
libavcodec/x86/dsputil_mmx.h
+
0
−
8
View file @
3334cbec
...
...
@@ -28,7 +28,6 @@
#include
"libavcodec/dsputil.h"
#include
"libavutil/x86/asm.h"
extern
const
uint64_t
ff_bone
;
extern
const
uint64_t
ff_wtwo
;
extern
const
xmm_reg
ff_pw_3
;
...
...
@@ -81,17 +80,10 @@ extern const double ff_pd_2[2];
"paddb %%"#regd", %%"#regd" \n\t" ::)
#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))
#else
// for shared library it's better to use this way for accessing constants
// 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) \
__asm__ volatile ( \
"pcmpeqd %%"#regd", %%"#regd" \n\t" \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment