Back to index

plt-scheme  4.2.1
Defines | Typedefs
asm-common.h File Reference

Go to the source code of this file.

Defines

#define __lightning_asm_common_h_
#define JITFAIL(MSG)   0
#define JITSORRY(MSG)   jit_fail("sorry, unimplemented: " MSG, __FILE__, __LINE__, __FUNCTION__)
#define JIT_UNUSED
#define _TEMPD(type, var)   static type var;
#define _TEMP(type, var, val, body)   ((var = val), body)
#define _jit_UC(X)   ((_uc )(X))
#define _jit_SC(X)   ((_sc )(X))
#define _jit_US(X)   ((_us )(X))
#define _jit_UI(X)   ((_ui )(X))
#define _jit_SI(X)   ((_si )(X))
#define _jit_SL(X)   ((_sl )(X))
#define _jit_UL(X)   ((_ul )(X))
#define _PUC(X)   ((_uc *)(X))
#define _PSC(X)   ((_sc *)(X))
#define _PUS(X)   ((_us *)(X))
#define _PUI(X)   ((_ui *)(X))
#define _PSI(X)   ((_si *)(X))
#define _PSL(X)   ((_sl *)(X))
#define _PUL(X)   ((_ul *)(X))
#define _jit_VD(x)   ((void)(x))
#define _jit_B(B)   _jit_VD(((*_jit.x.uc_pc++)= _jit_UC((B)& 0xff)))
#define _jit_W(W)   _jit_VD(((*_jit.x.us_pc++)= _jit_US((W)&0xffff)))
#define _jit_I(I)   _jit_VD(((*_jit.x.ui_pc++)= _jit_UI((I) )))
#define _jit_L(L)   _jit_VD(((*_jit.x.ul_pc++)= _jit_UL((L) )))
#define _jit_I_noinc(I)   _jit_VD(((*_jit.x.ui_pc)= _jit_UI((I) )))
#define _MASK(N)   ((unsigned long)(((long)1<<(N)))-1)
#define _siP(N, I)   (!((((unsigned long)(I))^(((unsigned long)(I))<<1))&~_MASK(N)))
#define _uiP(N, I)   (!(((unsigned long)(I))&~_MASK(N)))
#define _suiP(N, I)   (_siP(N,I) | _uiP(N,I))
#define _ck_s(W, I)   (_jit_UL(I) & _MASK(W))
#define _ck_u(W, I)   (_jit_UL(I) & _MASK(W))
#define _ck_su(W, I)   (_jit_UL(I) & _MASK(W))
#define _ck_d(W, I)   (_jit_UL(I) & _MASK(W))
#define _s0P(I)   ((I)==0)
#define _s8P(I)   _siP(8,I)
#define _s16P(I)   _siP(16,I)
#define _u8P(I)   _uiP(8,I)
#define _u16P(I)   _uiP(16,I)
#define _s32P(I)   1
#define _u32P(I)   1
#define _su8(I)   _ck_su(8,I)
#define _su16(I)   _ck_su(16,I)
#define _s1(I)   _ck_s( 1,I)
#define _s2(I)   _ck_s( 2,I)
#define _s3(I)   _ck_s( 3,I)
#define _s4(I)   _ck_s( 4,I)
#define _s5(I)   _ck_s( 5,I)
#define _s6(I)   _ck_s( 6,I)
#define _s7(I)   _ck_s( 7,I)
#define _s8(I)   _ck_s( 8,I)
#define _s9(I)   _ck_s( 9,I)
#define _s10(I)   _ck_s(10,I)
#define _s11(I)   _ck_s(11,I)
#define _s12(I)   _ck_s(12,I)
#define _s13(I)   _ck_s(13,I)
#define _s14(I)   _ck_s(14,I)
#define _s15(I)   _ck_s(15,I)
#define _s16(I)   _ck_s(16,I)
#define _s17(I)   _ck_s(17,I)
#define _s18(I)   _ck_s(18,I)
#define _s19(I)   _ck_s(19,I)
#define _s20(I)   _ck_s(20,I)
#define _s21(I)   _ck_s(21,I)
#define _s22(I)   _ck_s(22,I)
#define _s23(I)   _ck_s(23,I)
#define _s24(I)   _ck_s(24,I)
#define _s25(I)   _ck_s(25,I)
#define _s26(I)   _ck_s(26,I)
#define _s27(I)   _ck_s(27,I)
#define _s28(I)   _ck_s(28,I)
#define _s29(I)   _ck_s(29,I)
#define _s30(I)   _ck_s(30,I)
#define _s31(I)   _ck_s(31,I)
#define _u1(I)   _ck_u( 1,I)
#define _u2(I)   _ck_u( 2,I)
#define _u3(I)   _ck_u( 3,I)
#define _u4(I)   _ck_u( 4,I)
#define _u5(I)   _ck_u( 5,I)
#define _u6(I)   _ck_u( 6,I)
#define _u7(I)   _ck_u( 7,I)
#define _u8(I)   _ck_u( 8,I)
#define _u9(I)   _ck_u( 9,I)
#define _u10(I)   _ck_u(10,I)
#define _u11(I)   _ck_u(11,I)
#define _u12(I)   _ck_u(12,I)
#define _u13(I)   _ck_u(13,I)
#define _u14(I)   _ck_u(14,I)
#define _u15(I)   _ck_u(15,I)
#define _u16(I)   _ck_u(16,I)
#define _u17(I)   _ck_u(17,I)
#define _u18(I)   _ck_u(18,I)
#define _u19(I)   _ck_u(19,I)
#define _u20(I)   _ck_u(20,I)
#define _u21(I)   _ck_u(21,I)
#define _u22(I)   _ck_u(22,I)
#define _u23(I)   _ck_u(23,I)
#define _u24(I)   _ck_u(24,I)
#define _u25(I)   _ck_u(25,I)
#define _u26(I)   _ck_u(26,I)
#define _u27(I)   _ck_u(27,I)
#define _u28(I)   _ck_u(28,I)
#define _u29(I)   _ck_u(29,I)
#define _u30(I)   _ck_u(30,I)
#define _u31(I)   _ck_u(31,I)

Typedefs

typedef char _sc
typedef unsigned char _uc
typedef unsigned short _us
typedef unsigned int _ui
typedef int _si
typedef long _sl
typedef unsigned long _ul

Define Documentation

Definition at line 34 of file asm-common.h.

#define _ck_d (   W,
 
)    (_jit_UL(I) & _MASK(W))

Definition at line 124 of file asm-common.h.

#define _ck_s (   W,
 
)    (_jit_UL(I) & _MASK(W))

Definition at line 121 of file asm-common.h.

#define _ck_su (   W,
 
)    (_jit_UL(I) & _MASK(W))

Definition at line 123 of file asm-common.h.

#define _ck_u (   W,
 
)    (_jit_UL(I) & _MASK(W))

Definition at line 122 of file asm-common.h.

#define _jit_B (   B)    _jit_VD(((*_jit.x.uc_pc++)= _jit_UC((B)& 0xff)))

Definition at line 109 of file asm-common.h.

#define _jit_I (   I)    _jit_VD(((*_jit.x.ui_pc++)= _jit_UI((I) )))

Definition at line 111 of file asm-common.h.

#define _jit_I_noinc (   I)    _jit_VD(((*_jit.x.ui_pc)= _jit_UI((I) )))

Definition at line 113 of file asm-common.h.

#define _jit_L (   L)    _jit_VD(((*_jit.x.ul_pc++)= _jit_UL((L) )))

Definition at line 112 of file asm-common.h.

#define _jit_SC (   X)    ((_sc )(X))

Definition at line 93 of file asm-common.h.

#define _jit_SI (   X)    ((_si )(X))

Definition at line 96 of file asm-common.h.

#define _jit_SL (   X)    ((_sl )(X))

Definition at line 97 of file asm-common.h.

#define _jit_UC (   X)    ((_uc )(X))

Definition at line 92 of file asm-common.h.

#define _jit_UI (   X)    ((_ui )(X))

Definition at line 95 of file asm-common.h.

#define _jit_UL (   X)    ((_ul )(X))

Definition at line 98 of file asm-common.h.

#define _jit_US (   X)    ((_us )(X))

Definition at line 94 of file asm-common.h.

#define _jit_VD (   x)    ((void)(x))

Definition at line 107 of file asm-common.h.

#define _jit_W (   W)    _jit_VD(((*_jit.x.us_pc++)= _jit_US((W)&0xffff)))

Definition at line 110 of file asm-common.h.

#define _MASK (   N)    ((unsigned long)(((long)1<<(N)))-1)

Definition at line 115 of file asm-common.h.

#define _PSC (   X)    ((_sc *)(X))

Definition at line 100 of file asm-common.h.

#define _PSI (   X)    ((_si *)(X))

Definition at line 103 of file asm-common.h.

#define _PSL (   X)    ((_sl *)(X))

Definition at line 104 of file asm-common.h.

#define _PUC (   X)    ((_uc *)(X))

Definition at line 99 of file asm-common.h.

#define _PUI (   X)    ((_ui *)(X))

Definition at line 102 of file asm-common.h.

#define _PUL (   X)    ((_ul *)(X))

Definition at line 105 of file asm-common.h.

#define _PUS (   X)    ((_us *)(X))

Definition at line 101 of file asm-common.h.

#define _s0P (   I)    ((I)==0)

Definition at line 132 of file asm-common.h.

#define _s1 (   I)    _ck_s( 1,I)

Definition at line 149 of file asm-common.h.

#define _s10 (   I)    _ck_s(10,I)

Definition at line 158 of file asm-common.h.

#define _s11 (   I)    _ck_s(11,I)

Definition at line 159 of file asm-common.h.

#define _s12 (   I)    _ck_s(12,I)

Definition at line 160 of file asm-common.h.

#define _s13 (   I)    _ck_s(13,I)

Definition at line 161 of file asm-common.h.

#define _s14 (   I)    _ck_s(14,I)

Definition at line 162 of file asm-common.h.

#define _s15 (   I)    _ck_s(15,I)

Definition at line 163 of file asm-common.h.

#define _s16 (   I)    _ck_s(16,I)

Definition at line 164 of file asm-common.h.

#define _s16P (   I)    _siP(16,I)

Definition at line 134 of file asm-common.h.

#define _s17 (   I)    _ck_s(17,I)

Definition at line 165 of file asm-common.h.

#define _s18 (   I)    _ck_s(18,I)

Definition at line 166 of file asm-common.h.

#define _s19 (   I)    _ck_s(19,I)

Definition at line 167 of file asm-common.h.

#define _s2 (   I)    _ck_s( 2,I)

Definition at line 150 of file asm-common.h.

#define _s20 (   I)    _ck_s(20,I)

Definition at line 168 of file asm-common.h.

#define _s21 (   I)    _ck_s(21,I)

Definition at line 169 of file asm-common.h.

#define _s22 (   I)    _ck_s(22,I)

Definition at line 170 of file asm-common.h.

#define _s23 (   I)    _ck_s(23,I)

Definition at line 171 of file asm-common.h.

#define _s24 (   I)    _ck_s(24,I)

Definition at line 172 of file asm-common.h.

#define _s25 (   I)    _ck_s(25,I)

Definition at line 173 of file asm-common.h.

#define _s26 (   I)    _ck_s(26,I)

Definition at line 174 of file asm-common.h.

#define _s27 (   I)    _ck_s(27,I)

Definition at line 175 of file asm-common.h.

#define _s28 (   I)    _ck_s(28,I)

Definition at line 176 of file asm-common.h.

#define _s29 (   I)    _ck_s(29,I)

Definition at line 177 of file asm-common.h.

#define _s3 (   I)    _ck_s( 3,I)

Definition at line 151 of file asm-common.h.

#define _s30 (   I)    _ck_s(30,I)

Definition at line 178 of file asm-common.h.

#define _s31 (   I)    _ck_s(31,I)

Definition at line 179 of file asm-common.h.

#define _s32P (   I)    1

Definition at line 142 of file asm-common.h.

#define _s4 (   I)    _ck_s( 4,I)

Definition at line 152 of file asm-common.h.

#define _s5 (   I)    _ck_s( 5,I)

Definition at line 153 of file asm-common.h.

#define _s6 (   I)    _ck_s( 6,I)

Definition at line 154 of file asm-common.h.

#define _s7 (   I)    _ck_s( 7,I)

Definition at line 155 of file asm-common.h.

#define _s8 (   I)    _ck_s( 8,I)

Definition at line 156 of file asm-common.h.

#define _s8P (   I)    _siP(8,I)

Definition at line 133 of file asm-common.h.

#define _s9 (   I)    _ck_s( 9,I)

Definition at line 157 of file asm-common.h.

#define _siP (   N,
 
)    (!((((unsigned long)(I))^(((unsigned long)(I))<<1))&~_MASK(N)))

Definition at line 116 of file asm-common.h.

#define _su16 (   I)    _ck_su(16,I)

Definition at line 147 of file asm-common.h.

#define _su8 (   I)    _ck_su(8,I)

Definition at line 146 of file asm-common.h.

#define _suiP (   N,
 
)    (_siP(N,I) | _uiP(N,I))

Definition at line 118 of file asm-common.h.

#define _TEMP (   type,
  var,
  val,
  body 
)    ((var = val), body)

Definition at line 80 of file asm-common.h.

#define _TEMPD (   type,
  var 
)    static type var;

Definition at line 79 of file asm-common.h.

#define _u1 (   I)    _ck_u( 1,I)

Definition at line 180 of file asm-common.h.

#define _u10 (   I)    _ck_u(10,I)

Definition at line 189 of file asm-common.h.

#define _u11 (   I)    _ck_u(11,I)

Definition at line 190 of file asm-common.h.

#define _u12 (   I)    _ck_u(12,I)

Definition at line 191 of file asm-common.h.

#define _u13 (   I)    _ck_u(13,I)

Definition at line 192 of file asm-common.h.

#define _u14 (   I)    _ck_u(14,I)

Definition at line 193 of file asm-common.h.

#define _u15 (   I)    _ck_u(15,I)

Definition at line 194 of file asm-common.h.

#define _u16 (   I)    _ck_u(16,I)

Definition at line 195 of file asm-common.h.

#define _u16P (   I)    _uiP(16,I)

Definition at line 136 of file asm-common.h.

#define _u17 (   I)    _ck_u(17,I)

Definition at line 196 of file asm-common.h.

#define _u18 (   I)    _ck_u(18,I)

Definition at line 197 of file asm-common.h.

#define _u19 (   I)    _ck_u(19,I)

Definition at line 198 of file asm-common.h.

#define _u2 (   I)    _ck_u( 2,I)

Definition at line 181 of file asm-common.h.

#define _u20 (   I)    _ck_u(20,I)

Definition at line 199 of file asm-common.h.

#define _u21 (   I)    _ck_u(21,I)

Definition at line 200 of file asm-common.h.

#define _u22 (   I)    _ck_u(22,I)

Definition at line 201 of file asm-common.h.

#define _u23 (   I)    _ck_u(23,I)

Definition at line 202 of file asm-common.h.

#define _u24 (   I)    _ck_u(24,I)

Definition at line 203 of file asm-common.h.

#define _u25 (   I)    _ck_u(25,I)

Definition at line 204 of file asm-common.h.

#define _u26 (   I)    _ck_u(26,I)

Definition at line 205 of file asm-common.h.

#define _u27 (   I)    _ck_u(27,I)

Definition at line 206 of file asm-common.h.

#define _u28 (   I)    _ck_u(28,I)

Definition at line 207 of file asm-common.h.

#define _u29 (   I)    _ck_u(29,I)

Definition at line 208 of file asm-common.h.

#define _u3 (   I)    _ck_u( 3,I)

Definition at line 182 of file asm-common.h.

#define _u30 (   I)    _ck_u(30,I)

Definition at line 209 of file asm-common.h.

#define _u31 (   I)    _ck_u(31,I)

Definition at line 210 of file asm-common.h.

#define _u32P (   I)    1

Definition at line 143 of file asm-common.h.

#define _u4 (   I)    _ck_u( 4,I)

Definition at line 183 of file asm-common.h.

#define _u5 (   I)    _ck_u( 5,I)

Definition at line 184 of file asm-common.h.

#define _u6 (   I)    _ck_u( 6,I)

Definition at line 185 of file asm-common.h.

#define _u7 (   I)    _ck_u( 7,I)

Definition at line 186 of file asm-common.h.

#define _u8 (   I)    _ck_u( 8,I)

Definition at line 187 of file asm-common.h.

#define _u8P (   I)    _uiP(8,I)

Definition at line 135 of file asm-common.h.

#define _u9 (   I)    _ck_u( 9,I)

Definition at line 188 of file asm-common.h.

#define _uiP (   N,
 
)    (!(((unsigned long)(I))&~_MASK(N)))

Definition at line 117 of file asm-common.h.

#define JIT_UNUSED

Definition at line 56 of file asm-common.h.

#define JITFAIL (   MSG)    0

Definition at line 38 of file asm-common.h.

#define JITSORRY (   MSG)    jit_fail("sorry, unimplemented: " MSG, __FILE__, __LINE__, __FUNCTION__)

Definition at line 50 of file asm-common.h.


Typedef Documentation

typedef char _sc

Definition at line 84 of file asm-common.h.

typedef int _si

Definition at line 88 of file asm-common.h.

typedef long _sl

Definition at line 89 of file asm-common.h.

typedef unsigned char _uc

Definition at line 85 of file asm-common.h.

typedef unsigned int _ui

Definition at line 87 of file asm-common.h.

typedef unsigned long _ul

Definition at line 90 of file asm-common.h.

typedef unsigned short _us

Definition at line 86 of file asm-common.h.