Mercurial > repos > tabletprog
comparison cbackend.js @ 134:34e0befbdd77
Add bitwise operations to int32 in the C backend
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 08 Aug 2013 19:19:19 -0700 |
parents | 9820ecd4eed4 |
children | f98790d8a53d |
comparison
equal
deleted
inserted
replaced
133:966a09d226e3 | 134:34e0befbdd77 |
---|---|
605 addBinaryOp(int32, 'ADD_', '+', 'obj_int32'); | 605 addBinaryOp(int32, 'ADD_', '+', 'obj_int32'); |
606 addBinaryOp(int32, 'SUB_', '-', 'obj_int32'); | 606 addBinaryOp(int32, 'SUB_', '-', 'obj_int32'); |
607 addBinaryOp(int32, 'MUL_', '*', 'obj_int32'); | 607 addBinaryOp(int32, 'MUL_', '*', 'obj_int32'); |
608 addBinaryOp(int32, 'DIV_', '/', 'obj_int32'); | 608 addBinaryOp(int32, 'DIV_', '/', 'obj_int32'); |
609 addBinaryOp(int32, 'MOD_', '%', 'obj_int32'); | 609 addBinaryOp(int32, 'MOD_', '%', 'obj_int32'); |
610 addBinaryOp(int32, 'or', '|', 'obj_int32'); | |
611 addBinaryOp(int32, 'xor', '^', 'obj_int32'); | |
612 addBinaryOp(int32, 'and', '&', 'obj_int32'); | |
613 addBinaryOp(int32, 'lshift:by', '<<', 'obj_int32'); | |
614 addBinaryOp(int32, 'rshift:by', '>>', 'obj_int32'); | |
610 addCompOp(int32, 'LT_', '<', 'obj_int32'); | 615 addCompOp(int32, 'LT_', '<', 'obj_int32'); |
611 addCompOp(int32, 'GT_', '>', 'obj_int32'); | 616 addCompOp(int32, 'GT_', '>', 'obj_int32'); |
612 addCompOp(int32, 'EQ_', '==', 'obj_int32'); | 617 addCompOp(int32, 'EQ_', '==', 'obj_int32'); |
613 addCompOp(int32, 'NEQ_', '!=', 'obj_int32'); | 618 addCompOp(int32, 'NEQ_', '!=', 'obj_int32'); |
614 addCompOp(int32, 'GEQ_', '>=', 'obj_int32'); | 619 addCompOp(int32, 'GEQ_', '>=', 'obj_int32'); |