Ignore:
Timestamp:
2011-06-19T17:54:08Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e4f8c77
Parents:
0ffbed9
Message:

Add a separate directory for each platform's external.{c,h}. Add mkext utility for generating those to the build.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/app/pcc/cc/ccom/arch/ia32/external.h

    • Property mode changed from 100644 to 100755
    r0ffbed9 r5974661  
    22#define _EXTERNAL_H_
    33#define MAXOPLEN 42
    4 #define NUMBITS 64
     4#define NUMBITS 32
    55#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;
     6#define BITSET(arr, bit) (arr[bit/NUMBITS] |= ((int)1 << (bit & (NUMBITS-1))))
     7#define BITCLEAR(arr, bit) (arr[bit/NUMBITS] &= ~((int)1 << (bit & (NUMBITS-1))))
     8#define TESTBIT(arr, bit) (arr[bit/NUMBITS] & ((int)1 << (bit & (NUMBITS-1))))
     9typedef int bittype;
    1010extern int tempregs[], permregs[];
    1111#define NTEMPREG 4
Note: See TracChangeset for help on using the changeset viewer.