mescc: Tinycc support: Add __lshrdi3, __ashldi3, __ashrdi3.
* lib/libc+tcc-gcc.c (__lshrdi3, __ashldi3, __ashrdi3): New function.
This commit is contained in:
parent
010ab2032f
commit
8c6e41d92d
|
@ -98,4 +98,21 @@ __umoddi3 (unsigned long long a, unsigned long long b)
|
||||||
return ai % bi;
|
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
|
#endif // !POSIX
|
||||||
|
|
Loading…
Reference in a new issue