lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 503e4e3 was 98a0fd3, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 14 years ago |
Make C compiler build.
|
-
Property mode
set to
100644
|
File size:
792 bytes
|
Line | |
---|
1 | #ifndef _EXTERNAL_H_
|
---|
2 | #define _EXTERNAL_H_
|
---|
3 | #define MAXOPLEN 42
|
---|
4 | #define NUMBITS 64
|
---|
5 | #define BIT2BYTE(bits) ((((bits)+NUMBITS-1)/NUMBITS)*(NUMBITS/8))
|
---|
6 | #define BITSET(arr, bit) (arr[bit/NUMBITS] |= ((long)1 << (bit & (NUMBITS-1))))
|
---|
7 | #define BITCLEAR(arr, bit) (arr[bit/NUMBITS] &= ~((long)1 << (bit & (NUMBITS-1))))
|
---|
8 | #define TESTBIT(arr, bit) (arr[bit/NUMBITS] & ((long)1 << (bit & (NUMBITS-1))))
|
---|
9 | typedef long bittype;
|
---|
10 | extern int tempregs[], permregs[];
|
---|
11 | #define NTEMPREG 4
|
---|
12 | #define FREGS 3
|
---|
13 | #define NPERMREG 4
|
---|
14 | extern bittype validregs[];
|
---|
15 | #define AREGCNT 6
|
---|
16 | #define BREGCNT 8
|
---|
17 | #define CREGCNT 15
|
---|
18 | #define DREGCNT 8
|
---|
19 | #define EREGCNT 0
|
---|
20 | #define FREGCNT 0
|
---|
21 | #define GREGCNT 0
|
---|
22 | int aliasmap(int class, int regnum);
|
---|
23 | int color2reg(int color, int class);
|
---|
24 | int interferes(int reg1, int reg2);
|
---|
25 | #endif /* _EXTERNAL_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.