add div64 and mod64
This commit is contained in:
parent
8480d55faf
commit
e69048ad3d
5 changed files with 35 additions and 2 deletions
11
llrtc/lib/div64.c
Normal file
11
llrtc/lib/div64.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include "llrt.h"
|
||||
|
||||
uint64_t udiv64(uint64_t dividend, uint64_t divisor)
|
||||
{
|
||||
return udivmod64(dividend, divisor, NULL);
|
||||
}
|
||||
|
||||
int64_t sdiv64(int64_t dividend, int64_t divisor)
|
||||
{
|
||||
return sdivmod64(dividend, divisor, NULL);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue