Skip to content
Browse files

libfpvm: rename op_not to op_negate

We'll soon use "not", and this would get confusing.
  • Loading branch information...
1 parent 5645389 commit f6309288826026e49910b1f58009b6434a0e5ded @wpwrak wpwrak committed Dec 30, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 software/include/fpvm/ast.h
  2. +2 −2 software/libfpvm/fpvm.c
View
2 software/include/fpvm/ast.h
@@ -40,7 +40,7 @@ enum ast_op {
op_if,
op_tsign,
op_quake,
- op_not,
+ op_negate,
op_sqr,
op_sqrt,
op_invsqrt,
View
4 software/libfpvm/fpvm.c
@@ -391,7 +391,7 @@ static int compile(struct fpvm_fragment *fragment, int reg, struct ast_node *nod
opb = COMPILE(FPVM_INVALID_REG, node->contents.branches.c);
(void) COMPILE(FPVM_REG_IFB, node->contents.branches.a);
break;
- case op_not:
+ case op_negate:
if(node->contents.branches.a->op == op_constant) {
/* Node is a negative constant */
struct ast_node *n;
@@ -512,7 +512,7 @@ static int compile(struct fpvm_fragment *fragment, int reg, struct ast_node *nod
case op_int:
ADD_INT(opa, reg);
break;
- case op_not:
+ case op_negate:
opb = find_negative_constant(fragment);
if(opb == FPVM_INVALID_REG)
return FPVM_INVALID_REG;

0 comments on commit f630928

Please sign in to comment.
Something went wrong with that request. Please try again.