summaryrefslogtreecommitdiff
path: root/src/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/arith.h
blob: f1d0bd6d8de4b9ba410e270105f2d0e40bc27ee6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _MSL_COMMON_ARITH_H
#define _MSL_COMMON_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_ARITH_H */