Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5964b664
Commit
5964b664
authored
Oct 31, 1995
by
Karl Heuer
Browse files
(SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h
Used new names for those macros in all references.
parent
2017bc3d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
100 deletions
+20
-100
src/m/alpha.h
src/m/alpha.h
+2
-9
src/m/convex.h
src/m/convex.h
+1
-10
src/m/hp800.h
src/m/hp800.h
+3
-12
src/m/intel386.h
src/m/intel386.h
+0
-19
src/m/iris4d.h
src/m/iris4d.h
+3
-12
src/m/iris5d.h
src/m/iris5d.h
+3
-12
src/m/mips-siemens.h
src/m/mips-siemens.h
+4
-13
src/m/mips.h
src/m/mips.h
+4
-13
No files found.
src/m/alpha.h
View file @
5964b664
...
...
@@ -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) << (
LONG
BITS - VALBITS)) >> (
LONG
BITS - 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 */
...
...
src/m/convex.h
View file @
5964b664
...
...
@@ -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 << (
INT
BITS-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
...
...
src/m/hp800.h
View file @
5964b664
...
...
@@ -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) <<
INT
BITS-VALBITS) >>
INT
BITS-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) <<
INT
BITS-VALBITS) >>
INT
BITS-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) <<
INT
BITS-GCTYPEBITS-VALBITS) >>
INT
BITS-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
...
...
src/m/intel386.h
View file @
5964b664
...
...
@@ -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 <values.h>, 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 <values.h>
#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. */
...
...
src/m/iris4d.h
View file @
5964b664
...
...
@@ -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) <<
INT
BITS-VALBITS) >>
INT
BITS-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) <<
INT
BITS-VALBITS) >>
INT
BITS-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) <<
INT
BITS-GCTYPEBITS-VALBITS) >>
INT
BITS-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
...
...
src/m/iris5d.h
View file @
5964b664
...
...
@@ -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) <<
INT
BITS-VALBITS) >>
INT
BITS-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) <<
INT
BITS-VALBITS) >>
INT
BITS-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) <<
INT
BITS-GCTYPEBITS-VALBITS) >>
INT
BITS-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
...
...
src/m/mips-siemens.h
View file @
5964b664
...
...
@@ -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) << (
INT
BITS-VALBITS)) >> (
INT
BITS-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) << (
INT
BITS-VALBITS)) >> (
INT
BITS-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) << (
INT
BITS-GCTYPEBITS-VALBITS))
\
>> (
INT
BITS-GCTYPEBITS-VALBITS)))
(((unsigned)(a) << (BITS
_PER_INT
-GCTYPEBITS-VALBITS)) \
>> (BITS
_PER_INT
-GCTYPEBITS-VALBITS)))
src/m/mips.h
View file @
5964b664
...
...
@@ -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) << (
INT
BITS-VALBITS)) >> (
INT
BITS-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) << (
INT
BITS-VALBITS)) >> (
INT
BITS-VALBITS)))
+ (((unsigned) (ptr) << (BITS
_PER_INT
-VALBITS)) >> (BITS
_PER_INT
-VALBITS)))
#define XUNMARK(a) \
((a) = \
(((unsigned)(a) << (
INT
BITS-GCTYPEBITS-VALBITS))
\
>> (
INT
BITS-GCTYPEBITS-VALBITS)))
(((unsigned)(a) << (BITS
_PER_INT
-GCTYPEBITS-VALBITS)) \
>> (BITS
_PER_INT
-GCTYPEBITS-VALBITS)))
#ifndef NEWSOS5
#ifdef USG
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment