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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [sh/] [lib/] [udivdi3.c] - Rev 1765

Compare with Previous | Blame | View Log

/*
 * 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);
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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