comparison src/m/hp800.h @ 13365:2cd15d90fec6

(SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h Used new names for those macros in all references.
author Karl Heuer <kwzh@gnu.org>
date Tue, 31 Oct 1995 05:22:28 +0000
parents f145d62266f6
children 51d3a3fa828c
comparison
equal deleted inserted replaced
13364:a568560d232f 13365:2cd15d90fec6
19 19
20 20
21 /* The following line tells the configuration script what sort of 21 /* The following line tells the configuration script what sort of
22 operating system this machine is likely to run. 22 operating system this machine is likely to run.
23 USUAL-OPSYS="hpux" */ 23 USUAL-OPSYS="hpux" */
24
25 /* The following three symbols give information on
26 the size of various data types. */
27
28 #define SHORTBITS 16 /* Number of bits in a short */
29
30 #define INTBITS 32 /* Number of bits in an int */
31
32 #define LONGBITS 32 /* Number of bits in a long */
33 24
34 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word 25 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
35 is the most significant byte. */ 26 is the most significant byte. */
36 27
37 #define WORDS_BIG_ENDIAN 28 #define WORDS_BIG_ENDIAN
131 122
132 /* The standard definitions of these macros would work ok, 123 /* The standard definitions of these macros would work ok,
133 but these are faster because the constants are short. */ 124 but these are faster because the constants are short. */
134 125
135 126
136 #define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS) 127 #define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)
137 128
138 #define XSET(var, type, ptr) \ 129 #define XSET(var, type, ptr) \
139 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS)) 130 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS))
140 131
141 #define XMARKBIT(a) ((a) < 0) 132 #define XMARKBIT(a) ((a) < 0)
142 #define XSETMARKBIT(a,b) ((a) = ((b) ? (a)|MARKBIT : (a) & ~MARKBIT)) 133 #define XSETMARKBIT(a,b) ((a) = ((b) ? (a)|MARKBIT : (a) & ~MARKBIT))
143 134
144 #if 0 /* Loses when sign bit of type field is set. */ 135 #if 0 /* Loses when sign bit of type field is set. */
145 #define XUNMARK(a) ((a) = (((a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS)) 136 #define XUNMARK(a) ((a) = (((a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS))
146 #endif 137 #endif
147 138
148 /* The symbol in the kernel where the load average is found 139 /* The symbol in the kernel where the load average is found
149 is named _avenrun. At this time there are two major flavors 140 is named _avenrun. At this time there are two major flavors
150 of hp-ux (there is the s800 and s300 (s200) flavors). The 141 of hp-ux (there is the s800 and s300 (s200) flavors). The