mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-25 07:22:55 -04:00
adb95b135c
Original repository: https://github.com/encounter/ww
20 lines
298 B
C
20 lines
298 B
C
#ifndef MSL_COMMON_SRC_ARITH_H
|
|
#define MSL_COMMON_SRC_ARITH_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
int quot; /* quotient */
|
|
int rem; /* remainder */
|
|
} div_t;
|
|
|
|
div_t div(int numerator, int denominator);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* MSL_COMMON_SRC_ARITH_H */
|