summaryrefslogtreecommitdiff
path: root/libs/PowerPC_EABI_Support/MSL/MSL_C/MSL_Common/Include/arith.h
blob: ee3c8ba03a50f77b53299918aa4ed1d4fb762fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _MSL_COMMON_ARITH_H
#define _MSL_COMMON_ARITH_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct div_t {
    int quot;  /* quotient */
    int rem;   /* remainder */
} div_t;

int abs(int n);
long int labs(long int n);
div_t div(int numerator, int denominator);

#ifdef __cplusplus
}
#endif

#endif /* _MSL_COMMON_ARITH_H */