|
|
1.1 root 1: #ifndef _LIBGCC_H
2: #define _LIBGCC_H
3:
4: #include "asm/types.h"
5:
6: #ifndef NULL
7: #define NULL ((void *)0)
8: #endif
9:
10: typedef int SItype __attribute__ ((mode (SI)));
11: typedef unsigned int USItype __attribute__ ((mode (SI)));
12: typedef int DItype __attribute__ ((mode (DI)));
13: typedef unsigned int UDItype __attribute__ ((mode (DI)));
14: typedef int word_type __attribute__ ((mode (__word__)));
15:
16: uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem);
17:
18: int64_t __divdi3(int64_t num, int64_t den);
19: uint64_t __udivdi3(uint64_t num, uint64_t den);
20:
21: uint64_t __umoddi3(uint64_t num, uint64_t den);
22:
23: DItype __ashldi3 (DItype u, word_type b);
24: DItype __lshrdi3 (DItype u, word_type b);
25: DItype __ashrdi3 (DItype u, word_type b);
26:
27: // Must be implemented outside:
28: void __divide_error(void);
29:
30: #if defined(__arch64__) || defined(__LP64__)
31: typedef int TItype __attribute__ ((mode (TI)));
32:
33: __uint128_t __udivmodti4(__uint128_t num, __uint128_t den, __uint128_t *rem);
34:
35: __int128_t __divti3(__int128_t num, __int128_t den);
36: __uint128_t __udivti3(__uint128_t num, __uint128_t den);
37:
38: __uint128_t __umodti3(__uint128_t num, __uint128_t den);
39:
40: TItype __multi3 (TItype u, TItype v);
41: TItype __negti2 (TItype u);
42:
43: #endif
44:
45: #endif /* _LIBGCC_H */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.