on master help sign in
Remove unused macros

Remove unnecessary bit manipulation

commitcc6d29eb5aa01cbf4d33f04b18a82e14b4403d84 authorNiklas Larsson <niklas@mm.st> dateFri 25 Aug 2017, 00:57 (9 years ago) parent33bff54
1 file changed+2−7
rts/idris_rts.h+2−7
rts/idris_rts.h+2−7
@@ -206,14 +206,9 @@ typedef void(*func)(VM*, VAL*);
206206#define CTAG(x) (((x)->info.c.tag_arity) >> 8)
207207#define CARITY(x) ((x)->info.c.tag_arity & 0x000000ff)
208208
209−// Use top 16 bits for saying which heap value is in
210−// Bottom 16 bits for closure type
211−
212−#define GETTY(x) ((x)->ty & 0x0000ffff)
213−#define SETTY(x,t) (x)->ty = (((x)->ty & 0xffff0000) | (t))
214209
215−#define GETHEAP(x) ((x)->ty >> 16)
216−#define SETHEAP(x,y) (x)->ty = (((x)->ty & 0x0000ffff) | ((y) << 16))
210+#define GETTY(x) ((x)->ty)
211+#define SETTY(x,t) ((x)->ty = t)
217212
218213// Integers, floats and operators
219214