Gerd Hoffmann wrote:
>
>>> +static uint32_t div_frac(uint32_t dividend, uint32_t divisor)
>>> +{
>>> + uint32_t quotient, remainder;
>>> +
>>> + __asm__ ( "divl %4"
>>> + : "=a" (quotient), "=d" (remainder)
>>> + : "0" (0), "1" (dividend), "r" (divisor) );
>>> + return quotient;
>>> +}
>>>
>>>
>> do_div()?
>>
>
> No, this one does something else. Already tried to get rid of that one
> before ;)
>
>
Ah yes, it calculates (dividend << 32) / divisor.
--
error compiling committee.c: too many arguments to function
_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/virtualization