Mercurial > emacs
comparison src/m/iris4d.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 | 1b85818da85f |
children | 2e1d9d11e506 |
comparison
equal
deleted
inserted
replaced
13364:a568560d232f | 13365:2cd15d90fec6 |
---|---|
15 | 15 |
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with GNU Emacs; see the file COPYING. If not, write to | 17 along with GNU Emacs; see the file COPYING. If not, write to |
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
19 | 19 |
20 | |
21 /* The following three symbols give information on | |
22 the size of various data types. */ | |
23 | |
24 #define SHORTBITS 16 /* Number of bits in a short */ | |
25 | |
26 #define INTBITS 32 /* Number of bits in an int */ | |
27 | |
28 #define LONGBITS 32 /* Number of bits in a long */ | |
29 | 20 |
30 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word | 21 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word |
31 is the most significant byte. */ | 22 is the most significant byte. */ |
32 | 23 |
33 #define WORDS_BIG_ENDIAN | 24 #define WORDS_BIG_ENDIAN |
175 #define STACK_DIRECTION -1 | 166 #define STACK_DIRECTION -1 |
176 | 167 |
177 /* The standard definitions of these macros would work ok, | 168 /* The standard definitions of these macros would work ok, |
178 but these are faster because the constants are short. */ | 169 but these are faster because the constants are short. */ |
179 | 170 |
180 #define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS) | 171 #define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS) |
181 | 172 |
182 #define XSET(var, type, ptr) \ | 173 #define XSET(var, type, ptr) \ |
183 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS)) | 174 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)) |
184 | 175 |
185 #define XMARKBIT(a) ((a) < 0) | 176 #define XMARKBIT(a) ((a) < 0) |
186 #define XSETMARKBIT(a,b) ((a) = ((a) & ~MARKBIT) | ((b) ? MARKBIT : 0)) | 177 #define XSETMARKBIT(a,b) ((a) = ((a) & ~MARKBIT) | ((b) ? MARKBIT : 0)) |
187 #define XUNMARK(a) ((a) = (((unsigned)(a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS)) | 178 #define XUNMARK(a) ((a) = (((unsigned)(a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS)) |
188 | 179 |
189 #ifndef __GNUC__ | 180 #ifndef __GNUC__ |
190 /* Turn off some "helpful" error checks for type mismatches | 181 /* Turn off some "helpful" error checks for type mismatches |
191 that we can't fix without breaking other machines. */ | 182 that we can't fix without breaking other machines. */ |
192 #ifdef IRIX_FORCE_32_BITS | 183 #ifdef IRIX_FORCE_32_BITS |