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
158a80cc
Commit
158a80cc
authored
Apr 07, 2014
by
Matt Oliver
Committed by
Michael Niedermayer
Apr 07, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove leal op to fix icl inline asm.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
02497a5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
vp56_arith.h
libavcodec/x86/vp56_arith.h
+5
-8
No files found.
libavcodec/x86/vp56_arith.h
View file @
158a80cc
...
...
@@ -29,24 +29,21 @@
static
av_always_inline
int
vp56_rac_get_prob
(
VP56RangeCoder
*
c
,
uint8_t
prob
)
{
unsigned
int
code_word
=
vp56_rac_renorm
(
c
);
unsigned
int
high
=
c
->
high
;
unsigned
int
low
=
1
+
(((
high
-
1
)
*
prob
)
>>
8
);
unsigned
int
low
=
1
+
(((
c
->
high
-
1
)
*
prob
)
>>
8
);
unsigned
int
low_shift
=
low
<<
16
;
int
bit
=
0
;
c
->
code_word
=
code_word
;
__asm__
(
"subl %4, %1
\n\t
"
"subl %3, %2
\n\t
"
"leal (%2, %3), %3
\n\t
"
"setae %b0
\n\t
"
"cmovb %4, %1
\n\t
"
"cmovb %
3
, %2
\n\t
"
:
"+q"
(
bit
),
"+
r"
(
high
),
"+r"
(
code_word
),
"+r"
(
low_shift
)
:
"r"
(
low
)
"cmovb %
5
, %2
\n\t
"
:
"+q"
(
bit
),
"+
&r"
(
c
->
high
),
"+&r"
(
c
->
code_word
)
:
"r"
(
low
_shift
),
"r"
(
low
),
"r"
(
code_word
)
);
c
->
high
=
high
;
c
->
code_word
=
code_word
;
return
bit
;
}
#endif
...
...
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