mescc: Support gcc-3.2: Add __divdi3, __moddi3 stubs.

* lib/gcc.c (__divdi3, __moddi3): New stubs.
This commit is contained in:
Jan Nieuwenhuizen 2018-06-06 17:02:01 +02:00
parent 0f3856f7b4
commit 4f6f79973e
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -46,3 +46,18 @@ sleep (unsigned int seconds)
requested_time.tv_nsec = 0;
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);
}