OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [sh/] [lib/] [udivdi3.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * Simple __udivdi3 function which doesn't use FPU.
3
 */
4
 
5
#include <linux/types.h>
6
 
7
extern u64 __xdiv64_32(u64 n, u32 d);
8
extern void panic(const char * fmt, ...);
9
 
10
u64 __udivdi3(u64 n, u64 d)
11
{
12
        if (d & ~0xffffffff)
13
                panic("Need true 64-bit/64-bit division");
14
        return __xdiv64_32(n, (u32)d);
15
}
16
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.