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