You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
299 B
17 lines
299 B
20 years ago
|
/*
|
||
|
* Simple __udivdi3 function which doesn't use FPU.
|
||
|
*/
|
||
|
|
||
|
#include <linux/types.h>
|
||
|
|
||
|
extern u64 __xdiv64_32(u64 n, u32 d);
|
||
|
extern void panic(const char * fmt, ...);
|
||
|
|
||
|
u64 __udivdi3(u64 n, u64 d)
|
||
|
{
|
||
|
if (d & ~0xffffffff)
|
||
|
panic("Need true 64-bit/64-bit division");
|
||
|
return __xdiv64_32(n, (u32)d);
|
||
|
}
|
||
|
|