add div64 and mod64
This commit is contained in:
parent
8480d55faf
commit
e69048ad3d
5 changed files with 35 additions and 2 deletions
|
|
@ -3,10 +3,17 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#define NULL 0
|
||||
#define BITS_PER_BYTE 8
|
||||
|
||||
uint64_t udivmod64(uint64_t dividend, uint64_t divisor, uint64_t *remainder);
|
||||
int64_t sdivmod64(int64_t dividend, int64_t divisor, int64_t *remainder);
|
||||
|
||||
uint64_t udiv64(uint64_t dividend, uint64_t divisor);
|
||||
int64_t sdiv64(int64_t dividend, int64_t divisor);
|
||||
|
||||
uint64_t umod64(uint64_t dividend, uint64_t divisor);
|
||||
int64_t smod64(int64_t dividend, int64_t divisor);
|
||||
|
||||
#endif /* LLRT_H_ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue