… | |
… | |
101 | typedef int16_t I16; |
101 | typedef int16_t I16; |
102 | typedef uint32_t U32; |
102 | typedef uint32_t U32; |
103 | typedef int32_t I32; |
103 | typedef int32_t I32; |
104 | typedef uint64_t U64; |
104 | typedef uint64_t U64; |
105 | typedef int64_t I64; |
105 | typedef int64_t I64; |
106 | typedef float F32; |
106 | typedef float FLT; |
107 | typedef double F64; |
107 | typedef double DBL; |
108 | typedef void * PTR; |
108 | typedef void * PTR; |
109 | |
109 | |
110 | template<typename T> struct typestr { }; |
110 | template<typename T> struct typestr { }; |
111 | |
111 | |
112 | template<> struct typestr<U8 > { static const char str[]; }; |
112 | template<> struct typestr<U8 > { static const char str[]; }; |
… | |
… | |
115 | template<> struct typestr<U64 > { static const char str[]; }; |
115 | template<> struct typestr<U64 > { static const char str[]; }; |
116 | template<> struct typestr<I8 > { static const char str[]; }; |
116 | template<> struct typestr<I8 > { static const char str[]; }; |
117 | template<> struct typestr<I16 > { static const char str[]; }; |
117 | template<> struct typestr<I16 > { static const char str[]; }; |
118 | template<> struct typestr<I32 > { static const char str[]; }; |
118 | template<> struct typestr<I32 > { static const char str[]; }; |
119 | template<> struct typestr<I64 > { static const char str[]; }; |
119 | template<> struct typestr<I64 > { static const char str[]; }; |
120 | template<> struct typestr<F32 > { static const char str[]; }; |
120 | template<> struct typestr<FLT > { static const char str[]; }; |
121 | template<> struct typestr<F64 > { static const char str[]; }; |
121 | template<> struct typestr<DBL > { static const char str[]; }; |
122 | template<> struct typestr<PTR > { static const char str[]; }; |
122 | template<> struct typestr<PTR > { static const char str[]; }; |
123 | template<> struct typestr<U8 *> { static const char str[]; }; |
123 | template<> struct typestr<U8 *> { static const char str[]; }; |
124 | template<> struct typestr<U16 *> { static const char str[]; }; |
124 | template<> struct typestr<U16 *> { static const char str[]; }; |
125 | template<> struct typestr<U32 *> { static const char str[]; }; |
125 | template<> struct typestr<U32 *> { static const char str[]; }; |
126 | template<> struct typestr<U64 *> { static const char str[]; }; |
126 | template<> struct typestr<U64 *> { static const char str[]; }; |
127 | template<> struct typestr<I8 *> { static const char str[]; }; |
127 | template<> struct typestr<I8 *> { static const char str[]; }; |
128 | template<> struct typestr<I16 *> { static const char str[]; }; |
128 | template<> struct typestr<I16 *> { static const char str[]; }; |
129 | template<> struct typestr<I32 *> { static const char str[]; }; |
129 | template<> struct typestr<I32 *> { static const char str[]; }; |
130 | template<> struct typestr<I64 *> { static const char str[]; }; |
130 | template<> struct typestr<I64 *> { static const char str[]; }; |
131 | template<> struct typestr<F32 *> { static const char str[]; }; |
131 | template<> struct typestr<FLT *> { static const char str[]; }; |
132 | template<> struct typestr<F64 *> { static const char str[]; }; |
132 | template<> struct typestr<DBL *> { static const char str[]; }; |
133 | |
133 | |
134 | EOF |
134 | EOF |
135 | |
135 | |
136 | for (0 .. $CPJIT_MAX_ARGS) { |
136 | for (0 .. $CPJIT_MAX_ARGS) { |
137 | print <<EOF; |
137 | print <<EOF; |