POK(kernelpart)
__udivdi3.c File Reference

Go to the source code of this file.

Functions

unsigned long long __udivdi3 (unsigned long long num, unsigned long long den)

Function Documentation

unsigned long long __udivdi3 ( unsigned long long  num,
unsigned long long  den 
)

Definition at line 19 of file __udivdi3.c.

{
#ifdef POK_NEEDS_DEBUG
unsigned long long quot, qbit;
quot = 0;
qbit = 1;
if (den == 0)
{
return 0;
}
while ((long long) den >= 0)
{
den <<= 1;
qbit <<= 1;
}
while (qbit)
{
if (den <= num)
{
num -= den;
quot += qbit;
}
den >>= 1;
qbit >>= 1;
}
return quot;
#else
(void) num;
(void) den;
return 0;
#endif
}