mescc: Support gcc-3.2: Add __divdi3, __moddi3 stubs.
* lib/gcc.c (__divdi3, __moddi3): New stubs.
This commit is contained in:
parent
0f3856f7b4
commit
4f6f79973e
15
lib/gcc.c
15
lib/gcc.c
|
@ -46,3 +46,18 @@ sleep (unsigned int seconds)
|
||||||
requested_time.tv_nsec = 0;
|
requested_time.tv_nsec = 0;
|
||||||
return nanosleep (&requested_time, &remaining);
|
return nanosleep (&requested_time, &remaining);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// gcc-3.2
|
||||||
|
double
|
||||||
|
__divdi3 (double a, double b)
|
||||||
|
{
|
||||||
|
eputs ("__divdi3 stub\n");
|
||||||
|
return ((int)a / (int)b);
|
||||||
|
}
|
||||||
|
|
||||||
|
double
|
||||||
|
__moddi3 (double a, double b)
|
||||||
|
{
|
||||||
|
eputs ("__moddi3 stub\n");
|
||||||
|
return ((int) a %(int)b);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue