-
Notifications
You must be signed in to change notification settings - Fork 7
/
cpu.h
58 lines (42 loc) · 900 Bytes
/
cpu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef _CPU_H
#ifdef __cplusplus
extern "C" {
#endif
/* define the CPU of the machine */
#define HP_APOLLO
/* the compiler: */
#define _HPUX_C_
#define _UNIX_C_
typedef double flonum;
#define FLOFMT "%lf"
#define FIXFMT "%hd"
typedef long bignum;
typedef short fixnum;
#define BIGFMT "%ld"
typedef void* pointer;
#define INTSIZE 4
#ifdef __GNUC__
# define PROTOTYPES
/* gcc doesn't define any of _SYSV/_BSD/_POSIX/_SOURCE;
* let's hope this is what we want
*/
#else
# ifdef __STDC__
# define PROTOTYPES
# endif
#endif
#define STACKUP
#ifdef STACKUP
/* stack grows up */
# define SHIFT_STACK(stack,element) (stack-=sizeof(element))
#else
/* stack grows down */
# define SHIFT_STACK(stack,element) (stack+=sizeof(element))
#endif
#define POP_STACK(stack,element) (*((element*)stack));SHIFT_STACK(stack,element)
#include "defun.h"
#define _CPU_H
#ifdef __cplusplus
}
#endif
#endif