mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Remove leal op to fix icl inline asm.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
02497a5dc8
commit
158a80cc0b
@ -29,24 +29,21 @@
|
|||||||
static av_always_inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob)
|
static av_always_inline int vp56_rac_get_prob(VP56RangeCoder *c, uint8_t prob)
|
||||||
{
|
{
|
||||||
unsigned int code_word = vp56_rac_renorm(c);
|
unsigned int code_word = vp56_rac_renorm(c);
|
||||||
unsigned int high = c->high;
|
unsigned int low = 1 + (((c->high - 1) * prob) >> 8);
|
||||||
unsigned int low = 1 + (((high - 1) * prob) >> 8);
|
|
||||||
unsigned int low_shift = low << 16;
|
unsigned int low_shift = low << 16;
|
||||||
int bit = 0;
|
int bit = 0;
|
||||||
|
c->code_word = code_word;
|
||||||
|
|
||||||
__asm__(
|
__asm__(
|
||||||
"subl %4, %1 \n\t"
|
"subl %4, %1 \n\t"
|
||||||
"subl %3, %2 \n\t"
|
"subl %3, %2 \n\t"
|
||||||
"leal (%2, %3), %3 \n\t"
|
|
||||||
"setae %b0 \n\t"
|
"setae %b0 \n\t"
|
||||||
"cmovb %4, %1 \n\t"
|
"cmovb %4, %1 \n\t"
|
||||||
"cmovb %3, %2 \n\t"
|
"cmovb %5, %2 \n\t"
|
||||||
: "+q"(bit), "+r"(high), "+r"(code_word), "+r"(low_shift)
|
: "+q"(bit), "+&r"(c->high), "+&r"(c->code_word)
|
||||||
: "r"(low)
|
: "r"(low_shift), "r"(low), "r"(code_word)
|
||||||
);
|
);
|
||||||
|
|
||||||
c->high = high;
|
|
||||||
c->code_word = code_word;
|
|
||||||
return bit;
|
return bit;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user