aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/m/hp800.h67
1 files changed, 37 insertions, 30 deletions
diff --git a/src/m/hp800.h b/src/m/hp800.h
index 1c3439e1c03..510c71b4c30 100644
--- a/src/m/hp800.h
+++ b/src/m/hp800.h
@@ -58,6 +58,41 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
58 58
59#define EXPLICIT_SIGN_EXTEND 59#define EXPLICIT_SIGN_EXTEND
60 60
61/* The standard definitions of these macros would work ok,
62 but these are faster because the constants are short. */
63
64
65#define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)
66
67#define XSET(var, type, ptr) \
68 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS))
69
70#define XMARKBIT(a) ((a) < 0)
71#define XSETMARKBIT(a,b) ((a) = ((b) ? (a)|MARKBIT : (a) & ~MARKBIT))
72
73#if 0 /* Loses when sign bit of type field is set. */
74#define XUNMARK(a) ((a) = (((a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS))
75#endif
76
77/* Define the BSTRING functions in terms of the sysV functions. */
78/* On HPUX 8.05, including types.h can include strings.h
79 which declares these as functions. Hence the #ifndef. */
80
81#ifndef HAVE_BCOPY
82#define bcopy(a,b,s) memcpy (b,a,s)
83#define bzero(a,s) memset (a,0,s)
84#define bcmp memcmp
85#endif
86
87#ifdef __hpux
88/* Now define a symbol for the cpu type, if your compiler
89 does not define it automatically:
90 Ones defined so far include vax, m68000, ns16000, pyramid,
91 orion, tahoe, APOLLO and many others */
92#ifndef hp9000s800
93# define hp9000s800
94#endif
95
61/* Data type of load average, as read out of kmem. */ 96/* Data type of load average, as read out of kmem. */
62 97
63#define LOAD_AVE_TYPE double 98#define LOAD_AVE_TYPE double
@@ -116,26 +151,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
116#define LIBS_MACHINE 151#define LIBS_MACHINE
117#define LIBS_DEBUG 152#define LIBS_DEBUG
118 153
119/* Define NEED_BSDTTY if you have such. */ 154/* Include the file bsdtty.h, since this machine has job control. */
120
121#define NEED_BSDTTY 155#define NEED_BSDTTY
122 156
123/* The standard definitions of these macros would work ok,
124 but these are faster because the constants are short. */
125
126
127#define XUINT(a) (((unsigned)(a) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS)
128
129#define XSET(var, type, ptr) \
130 ((var) = ((int)(type) << VALBITS) + (((unsigned) (ptr) << BITS_PER_INT-VALBITS) >> BITS_PER_INT-VALBITS))
131
132#define XMARKBIT(a) ((a) < 0)
133#define XSETMARKBIT(a,b) ((a) = ((b) ? (a)|MARKBIT : (a) & ~MARKBIT))
134
135#if 0 /* Loses when sign bit of type field is set. */
136#define XUNMARK(a) ((a) = (((a) << BITS_PER_INT-GCTYPEBITS-VALBITS) >> BITS_PER_INT-GCTYPEBITS-VALBITS))
137#endif
138
139/* The symbol in the kernel where the load average is found 157/* The symbol in the kernel where the load average is found
140 is named _avenrun. At this time there are two major flavors 158 is named _avenrun. At this time there are two major flavors
141 of hp-ux (there is the s800 and s300 (s200) flavors). The 159 of hp-ux (there is the s800 and s300 (s200) flavors). The
@@ -156,20 +174,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
156#undef S_IFLNK 174#undef S_IFLNK
157#endif 175#endif
158 176
159/* Define the BSTRING functions in terms of the sysV functions. */
160/* On HPUX 8.05, including types.h can include strings.h
161 which declares these as functions. Hence the #ifndef. */
162
163#ifndef HAVE_BCOPY
164#define bcopy(a,b,s) memcpy (b,a,s)
165#define bzero(a,s) memset (a,0,s)
166#define bcmp memcmp
167#endif
168
169/* On USG systems these have different names. */ 177/* On USG systems these have different names. */
170 178
171#define index strchr 179#define index strchr
172#define rindex strrchr 180#define rindex strrchr
173 181
174/* Include the file bsdtty.h, since this machine has job control. */ 182#endif /* __hpux */
175#define NEED_BSDTTY