|
|
1.1 root 1: /* (-lgl
2: * COHERENT 386 Device Driver Kit release 2.0
3: * Copyright (c) 1982, 1992 by Mark Williams Company.
4: * All rights reserved. May not be copied without permission.
5: -lgl) */
6:
7: /*
8: * /usr/include/sys/mdata.h
9: * Magic machine numbers.
10: * i80386.
11: */
12:
13: #ifndef __SYS_MDATA_H__
14: #define __SYS_MDATA_H__
15:
16: /* Bits per type. */
17: #define NBCHAR 8
18: #define NBSHORT 16
19: #define NBINT 32
20: #define NBLONG 32
21: #define NBFLOAT 32
22: #define NBDOUBLE 64
23:
24: /* Bits per pointer. */
25: #define NBPCHAR 32
26: #define NBPSHORT 32
27: #define NBPINT 32
28: #define NBPLONG 32
29: #define NBPFLOAT 32
30: #define NBPDOUBLE 32
31: #define NBPSTRUCT 32
32: #define NBPUNION 32
33:
34: /*
35: * Alignment.
36: * The values listed below can be misleading.
37: * Under iBCS2 alignment rules, struct or union alignment
38: * depends on the member types rather than being a specific value.
39: * #pragma directives may also change the alignment.
40: */
41: /* Type alignment. */
42: #define ALCHAR 1
43: #define ALSHORT 2
44: #define ALINT 4
45: #define ALLONG 4
46: #define ALFLOAT 4
47: #define ALDOUBLE 4
48: #define ALSTRUCT 4 /* actually max of alignments of members */
49: #define ALUNION 4 /* actually max of alignments of members */
50:
51: /* Pointer alignment. */
52: #define ALPCHAR 4
53: #define ALPSHORT 4
54: #define ALPINT 4
55: #define ALPLONG 4
56: #define ALPFLOAT 4
57: #define ALPDOUBLE 4
58: #define ALPSTRUCT 4
59: #define ALPUNION 4
60:
61: /* Ranges. */
62: #define MAXCHAR 127
63: #define MINCHAR (-128)
64: #define MAXUCHAR 255
65: #define MAXSHORT 32767
66: #define MINSHORT (-32768)
67: #define MAXUSHORT 65535
68: #define MAXINT 2147483647
69: #define MININT (-2147483648)
70: #define MAXUINT 4294967295
71: #define MAXLONG 2147483647L
72: #define MINLONG (-2147483648L)
73: #define MAXULONG 4294967295L
74:
75: /* Fixed point representation. */
76: #define TCINT 1
77: #define OCINT 0
78: #define SMINT 0
79:
80: /* Base2 logarithms of bits per type. */
81: #define LOGCHAR 3
82: #define LOGSHORT 4
83: #define LOGINT 5
84: #define LOGLONG 5
85:
86: #endif
87:
88: /* end of /usr/include/sys/mdata.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.