mirror of https://git.ffmpeg.org/ffmpeg.git
mathops: fix MULL() when the compiler does not inline the function.
If the function is not inlined, an immmediate cannot be used for the shift parameter, so the %cl register must be used instead in that case. This fixes compilation for x86-32 using gcc with --disable-optimizations.
This commit is contained in:
parent
56e2ac6b45
commit
79414257e2
|
@ -35,7 +35,7 @@ static av_always_inline av_const int MULL(int a, int b, unsigned shift)
|
|||
"imull %3 \n\t"
|
||||
"shrdl %4, %%edx, %%eax \n\t"
|
||||
:"=a"(rt), "=d"(dummy)
|
||||
:"a"(a), "rm"(b), "i"(shift)
|
||||
:"a"(a), "rm"(b), "ci"((uint8_t)shift)
|
||||
);
|
||||
return rt;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue