blob: 3ac1a9070796f9e5c7ab9ce6a83bd59e783290aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* maybe used for porting ...
* (ignore this file.)
*/
#ifdef __ALWAYS_UNDEFINED
template <class Ad_t, bool BE, unsigned short A>
class Architecture
{
private:
le_replace (unsigned char *, AddressType);
be_replace (unsigned char *, AddressType);
public:
typedef Ad_t AddressType; /* type capable for holding a memory address as integer */
bool BigEndian; /* true if machine uses big endian */
unsigned short Align; /* data alignment - needed? (sanity checks) */
Architecture ()
{
BigEndian = BE;
Align = A;
}
replaceAddress (unsigned char *, AddressType);
};
Architecture<unsigned int, false, 4> x86;
// ...
#define x86 this_arch;
#endif
|