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
da3af4db
Commit
da3af4db
authored
Jun 20, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: cabac: remove hardcoded edx in get_cabac_inline()
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
51f16a9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cabac.h
libavcodec/cabac.h
+8
-8
No files found.
libavcodec/cabac.h
View file @
da3af4db
...
...
@@ -310,7 +310,7 @@ static inline void renorm_cabac_decoder_once(CABACContext *c){
static
av_always_inline
int
get_cabac_inline
(
CABACContext
*
c
,
uint8_t
*
const
state
){
//FIXME gcc generates duplicate load/stores for c->low and c->range
#if ARCH_X86 && HAVE_7REGS && !defined(BROKEN_RELOCATIONS)
int
bit
,
low
;
int
bit
,
low
,
tmp
;
#if HAVE_FAST_CMOV
#define BRANCHLESS_GET_CABAC_UPDATE(ret, cabac, statep, low, lowword, range, tmp)\
...
...
@@ -370,17 +370,17 @@ static av_always_inline int get_cabac_inline(CABACContext *c, uint8_t * const st
"1: \n\t"
__asm__
volatile
(
"movl %a
4(%3
), %%esi
\n\t
"
"movl %a
5(%3
), %1
\n\t
"
BRANCHLESS_GET_CABAC
(
"%0"
,
"%
3"
,
"(%2)"
,
"%1"
,
"%w1"
,
"%%esi"
,
"%%edx"
,
"%%dl"
,
"%a6
"
)
"movl %%esi, %a
4(%3
)
\n\t
"
"movl %1, %a
5(%3
)
\n\t
"
"movl %a
5(%4
), %%esi
\n\t
"
"movl %a
6(%4
), %1
\n\t
"
BRANCHLESS_GET_CABAC
(
"%0"
,
"%
4"
,
"(%3)"
,
"%1"
,
"%w1"
,
"%%esi"
,
"%2"
,
"%b2"
,
"%a7
"
)
"movl %%esi, %a
5(%4
)
\n\t
"
"movl %1, %a
6(%4
)
\n\t
"
:
"=&a"
(
bit
),
"=&r"
(
low
)
:
"=&a"
(
bit
),
"=&r"
(
low
)
,
"=&r"
(
tmp
)
:
"r"
(
state
),
"r"
(
c
),
"i"
(
offsetof
(
CABACContext
,
range
)),
"i"
(
offsetof
(
CABACContext
,
low
)),
"i"
(
offsetof
(
CABACContext
,
bytestream
))
:
"%"
REG_c
,
"%e
dx"
,
"%e
si"
,
"memory"
:
"%"
REG_c
,
"%esi"
,
"memory"
);
bit
&=
1
;
#else
/* ARCH_X86 && HAVE_7REGS && !defined(BROKEN_RELOCATIONS) */
...
...
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