mirror of
https://github.com/zeldaret/oot-vc.git
synced 2026-10-04 00:19:52 -04:00
c8c3307996
* Match libc alloc, printf, strtold * Match libc/time.c * Match remaining libc data * Fix oot-u splits * Fix oot-e splits
29 lines
480 B
C
29 lines
480 B
C
#ifndef _ARITH_H
|
|
#define _ARITH_H
|
|
|
|
#include "revolution/types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
int quot; /* quotient */
|
|
int rem; /* remainder */
|
|
} div_t;
|
|
|
|
int abs(int __x);
|
|
long labs(long __x);
|
|
div_t div(int __numer, int __denom);
|
|
int __msl_add(int* __x, int __y);
|
|
int __msl_ladd(long* __x, long __y);
|
|
int __msl_lmul(long* __x, long __y);
|
|
div_t __msl_div(int __x, int __y);
|
|
int __msl_mod(int __x, int __y);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|