mescc: Tinycc support: Add __lshrdi3, __ashldi3, __ashrdi3.

* lib/libc+tcc-gcc.c (__lshrdi3, __ashldi3, __ashrdi3): New function.
This commit is contained in:
Jan Nieuwenhuizen 2018-05-14 22:36:14 +02:00
parent 010ab2032f
commit 8c6e41d92d
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -98,4 +98,21 @@ __umoddi3 (unsigned long long a, unsigned long long b)
return ai % bi;
}
unsigned long long
__lshrdi3 (unsigned long long a, int b)
{
return a >> b;
}
long long
__ashldi3 (long long a, int b)
{
return a << b;
}
long long
__ashrdi3 (long long a, int b)
{
return a >> b;
}
#endif // !POSIX