From 5b9f35ec7509e169f58500b66712eafb075d0b36 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sun, 11 Oct 2009 16:46:46 +0200 Subject: Added a simple random generator --- Source/Kernel/Core/cppsupport.wtf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Kernel/Core') diff --git a/Source/Kernel/Core/cppsupport.wtf.cpp b/Source/Kernel/Core/cppsupport.wtf.cpp index 16cd122..bad28f2 100644 --- a/Source/Kernel/Core/cppsupport.wtf.cpp +++ b/Source/Kernel/Core/cppsupport.wtf.cpp @@ -9,7 +9,6 @@ extern "C" int __cxa_atexit(void (*f)(void*), void *p, void *d) { return 0; } //Functions for quad divisions/modulo. Taken and arranged from klibc include/asm/div64.h //These only work with 32-bit divisors and only return 32-bit remainder. //TODO : think of some correct quad div/mod algorithms -extern "C" { inline u64int doDiv(u64int dividend, u32int divisor, u32int *remainder) { union { u64int v64; @@ -28,6 +27,7 @@ inline u64int doDiv(u64int dividend, u32int divisor, u32int *remainder) { return d.v64; } +extern "C" { u64int __udivdi3(u64int dividend, u64int b) { u32int divisor, remainder; divisor = b; -- cgit v1.2.3