From 5964b664538e9bf6937cc7187d810b8589b30e7f Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Tue, 31 Oct 1995 05:22:28 +0000 Subject: [PATCH] (SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h Used new names for those macros in all references. --- src/m/alpha.h | 11 ++--------- src/m/convex.h | 11 +---------- src/m/hp800.h | 15 +++------------ src/m/intel386.h | 19 ------------------- src/m/iris4d.h | 15 +++------------ src/m/iris5d.h | 15 +++------------ src/m/mips-siemens.h | 17 ++++------------- src/m/mips.h | 17 ++++------------- 8 files changed, 20 insertions(+), 100 deletions(-) diff --git a/src/m/alpha.h b/src/m/alpha.h index 459a00d8181..a820baf3d54 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h @@ -28,14 +28,7 @@ NOTE-END */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 64 /* Number of bits in a long */ +#define BITS_PER_LONG 64 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -206,7 +199,7 @@ NOTE-END /* Define XINT and XUINT so that they can take arguments of type int */ -#define XINT(a) (((long) (a) << (LONGBITS - VALBITS)) >> (LONGBITS - VALBITS)) +#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS)) #define XUINT(a) ((long) (a) & VALMASK) /* Define XPNTR to avoid or'ing with DATA_SEG_BITS */ diff --git a/src/m/convex.h b/src/m/convex.h index 3f1bcaaeafa..4134b0c6cc8 100644 --- a/src/m/convex.h +++ b/src/m/convex.h @@ -22,15 +22,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ operating system this machine is likely to run. USUAL-OPSYS="bsd4-3" */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -115,7 +106,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* #define NO_REMAP */ /* Addresses on the Convex have the high bit set. */ -#define DATA_SEG_BITS (1 << (INTBITS-1)) +#define DATA_SEG_BITS (1 << (BITS_PER_INT-1)) /* Right shift is logical shift. And the usual way of handling such machines, which involves diff --git a/src/m/hp800.h b/src/m/hp800.h index ea3f012d586..1c3439e1c03 100644 --- a/src/m/hp800.h +++ b/src/m/hp800.h @@ -22,15 +22,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ operating system this machine is likely to run. USUAL-OPSYS="hpux" */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -133,16 +124,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ but these are faster because the constants are short. */ -#define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS) +#define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS) #define XSET(var, type, ptr) \ - ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS)) + ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)) #define XMARKBIT(a) ((a) < 0) #define XSETMARKBIT(a,b) ((a) = ((b) ? (a)|MARKBIT : (a) & ~MARKBIT)) #if 0 /* Loses when sign bit of type field is set. */ -#define XUNMARK(a) ((a) = (((a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS)) +#define XUNMARK(a) ((a) = (((a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS)) #endif /* The symbol in the kernel where the load average is found diff --git a/src/m/intel386.h b/src/m/intel386.h index d7e489707cd..4b3ee844672 100644 --- a/src/m/intel386.h +++ b/src/m/intel386.h @@ -48,25 +48,6 @@ Prime EXL (-machine=intel386 -opsystem=usg5-3) Minor changes merged in 19.1. NOTE-END */ -/* The following three symbols give information on - the size of various data types. */ - - -/* Linux defines these in , but they can't be used in #if's. - #include it now so we know we've overridden it once and for all. */ -#ifdef linux -#include -#undef SHORTBITS -#undef INTBITS -#undef LONGBITS -#endif - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ diff --git a/src/m/iris4d.h b/src/m/iris4d.h index 5996d0e5933..c10b859aac3 100644 --- a/src/m/iris4d.h +++ b/src/m/iris4d.h @@ -18,15 +18,6 @@ along with GNU Emacs; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -177,14 +168,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* The standard definitions of these macros would work ok, but these are faster because the constants are short. */ -#define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS) +#define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS) #define XSET(var, type, ptr) \ - ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS)) + ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)) #define XMARKBIT(a) ((a) < 0) #define XSETMARKBIT(a,b) ((a) = ((a) & ~MARKBIT) | ((b) ? MARKBIT : 0)) -#define XUNMARK(a) ((a) = (((unsigned)(a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS)) +#define XUNMARK(a) ((a) = (((unsigned)(a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS)) #ifndef __GNUC__ /* Turn off some "helpful" error checks for type mismatches diff --git a/src/m/iris5d.h b/src/m/iris5d.h index 437a13e38fc..c52f04ca466 100644 --- a/src/m/iris5d.h +++ b/src/m/iris5d.h @@ -22,15 +22,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ operating system this machine is likely to run. USUAL-OPSYS="irix3-3" */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -177,14 +168,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* The standard definitions of these macros would work ok, but these are faster because the constants are short. */ -#define XUINT(a) (((unsigned)(a) << INTBITS-VALBITS) >> INTBITS-VALBITS) +#define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS) #define XSET(var, type, ptr) \ - ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << INTBITS-VALBITS) >> INTBITS-VALBITS)) + ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)) #define XMARKBIT(a) ((a) < 0) #define XSETMARKBIT(a,b) ((a) = ((a) & ~MARKBIT) | ((b) ? MARKBIT : 0)) -#define XUNMARK(a) ((a) = (((unsigned)(a) << INTBITS-GCTYPEBITS-VALBITS) >> INTBITS-GCTYPEBITS-VALBITS)) +#define XUNMARK(a) ((a) = (((unsigned)(a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS)) #ifndef __GNUC__ /* Turn off some "helpful" error checks for type mismatches diff --git a/src/m/mips-siemens.h b/src/m/mips-siemens.h index 3ac87ae4ec9..5ba3db21431 100644 --- a/src/m/mips-siemens.h +++ b/src/m/mips-siemens.h @@ -34,15 +34,6 @@ This is the m- file for SNI RM*00 machines. Use s- sinix5-4.h file! With this the file mips-siemens.h is obsolete. NOTE-END */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -177,12 +168,12 @@ NOTE-END */ /* The standard definitions of these macros would work ok, but these are faster because the constants are short. */ -#define XUINT(a) (((unsigned)(a) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS)) +#define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)) #define XSET(var, type, ptr) \ ((var) = \ ((int)(type) << VALBITS) \ - + (((unsigned) (ptr) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS))) + + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))) #define XSETINT(a, b) XSET(a, XTYPE(a), b) #define XSETUINT(a, b) XSET(a, XTYPE(a), b) @@ -190,6 +181,6 @@ NOTE-END */ #define XUNMARK(a) \ ((a) = \ - (((unsigned)(a) << (INTBITS-GCTYPEBITS-VALBITS)) \ - >> (INTBITS-GCTYPEBITS-VALBITS))) + (((unsigned)(a) << (BITS_PER_INT-GCTYPEBITS-VALBITS)) \ + >> (BITS_PER_INT-GCTYPEBITS-VALBITS))) diff --git a/src/m/mips.h b/src/m/mips.h index 690a13b9eae..f24abde9901 100644 --- a/src/m/mips.h +++ b/src/m/mips.h @@ -27,15 +27,6 @@ Use m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. Note that the proper m- file for the Decstation is m-pmax.h. NOTE-END */ -/* The following three symbols give information on - the size of various data types. */ - -#define SHORTBITS 16 /* Number of bits in a short */ - -#define INTBITS 32 /* Number of bits in an int */ - -#define LONGBITS 32 /* Number of bits in a long */ - /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word is the most significant byte. */ @@ -169,17 +160,17 @@ NOTE-END */ /* The standard definitions of these macros would work ok, but these are faster because the constants are short. */ -#define XUINT(a) (((unsigned)(a) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS)) +#define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)) #define XSET(var, type, ptr) \ ((var) = \ ((int)(type) << VALBITS) \ - + (((unsigned) (ptr) << (INTBITS-VALBITS)) >> (INTBITS-VALBITS))) + + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))) #define XUNMARK(a) \ ((a) = \ - (((unsigned)(a) << (INTBITS-GCTYPEBITS-VALBITS)) \ - >> (INTBITS-GCTYPEBITS-VALBITS))) + (((unsigned)(a) << (BITS_PER_INT-GCTYPEBITS-VALBITS)) \ + >> (BITS_PER_INT-GCTYPEBITS-VALBITS))) #ifndef NEWSOS5 #ifdef USG -- 2.39.2