rename mod to rem
This commit is contained in:
parent
c16532b9b0
commit
e5a7482b54
2 changed files with 11 additions and 15 deletions
16
lisc/lisc.h
16
lisc/lisc.h
|
@ -52,24 +52,20 @@ enum {
|
|||
#define CONST(x) (Ref){RConst, x}
|
||||
|
||||
static inline int req(Ref a, Ref b)
|
||||
{
|
||||
return a.type == b.type && a.val == b.val;
|
||||
}
|
||||
{ return a.type == b.type && a.val == b.val; }
|
||||
static inline int rtype(Ref r)
|
||||
{
|
||||
return req(r, R) ? -1 : r.type;
|
||||
}
|
||||
{ return req(r, R) ? -1 : r.type; }
|
||||
|
||||
enum {
|
||||
OXXX = 0,
|
||||
/* public instruction */
|
||||
OAdd,
|
||||
OSub,
|
||||
ODiv,
|
||||
OMod,
|
||||
OCopy,
|
||||
|
||||
ORem,
|
||||
/* reserved instructions */
|
||||
OX86Div,
|
||||
OCopy,
|
||||
OXDiv,
|
||||
OLast
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue