rename mod to rem

This commit is contained in:
Quentin Carbonneaux 2015-07-18 16:41:02 -04:00
parent c16532b9b0
commit e5a7482b54
2 changed files with 11 additions and 15 deletions

View file

@ -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
};