1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/symbian/missing-aeabi.c
matz 5932de4991 * symbian/README.SYMBIAN: symbian support added. great appreciate
to <alexandre.zavorine at symbian.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-15 01:55:41 +00:00

18 lines
388 B
C

#if __GNUC__ > 3
/* GCCE 4.3.2 generates these functions which are are missing from exports (they are simple aliases) */
extern int __aeabi_uidivmod(unsigned int a, unsigned int b);
extern int __aeabi_idivmod(int a, int b);
int __aeabi_idiv(int a, int b)
{
return __aeabi_idivmod(a, b);
}
int __aeabi_uidiv(unsigned int a, unsigned int b)
{
return __aeabi_uidivmod(a, b);
}
#endif