From 3e22a883f6ad7c41ab4972d966db7f12f8a21f89 Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Fri, 26 Nov 2004 10:45:32 +0000 Subject: [PATCH] Just fixed a typo (HASHPTR -> HASH_PTR) [r4471] --- ir/adt/hashptr.h | 2 +- ir/ir/iropt.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ir/adt/hashptr.h b/ir/adt/hashptr.h index 8f70cc4af..f61d53912 100644 --- a/ir/adt/hashptr.h +++ b/ir/adt/hashptr.h @@ -16,6 +16,6 @@ * hash a pointer value: Pointer addresses are mostly aligned to 4 * or 8 bytes. So we remove the lowest 3 bits */ -#define HASHPTR(ptr) (((char *)ptr - (char *)0) >> 3) +#define HASH_PTR(ptr) (((char *)ptr - (char *)0) >> 3) #endif /* __HASHPTR_H__ */ diff --git a/ir/ir/iropt.c b/ir/ir/iropt.c index 5c0ce6b96..60ad50ea6 100644 --- a/ir/ir/iropt.c +++ b/ir/ir/iropt.c @@ -1926,12 +1926,12 @@ ir_node_hash (ir_node *node) if (node->op == op_Const) { /* special value for const, as they only differ in their tarval. */ - h = HASHPTR(node->attr.con.tv); - h = 9*h + HASHPTR(get_irn_mode(node)); + h = HASH_PTR(node->attr.con.tv); + h = 9*h + HASH_PTR(get_irn_mode(node)); } else if (node->op == op_SymConst) { /* special value for const, as they only differ in their symbol. */ - h = HASHPTR(node->attr.i.sym.type_p); - h = 9*h + HASHPTR(get_irn_mode(node)); + h = HASH_PTR(node->attr.i.sym.type_p); + h = 9*h + HASH_PTR(get_irn_mode(node)); } else { /* hash table value = 9*(9*(9*(9*(9*arity+in[0])+in[1])+ ...)+mode)+code */ @@ -1939,13 +1939,13 @@ ir_node_hash (ir_node *node) /* consider all in nodes... except the block if not a control flow. */ for (i = is_cfop(node) ? -1 : 0; i < irn_arity; i++) { - h = 9*h + HASHPTR(get_irn_intra_n(node, i)); + h = 9*h + HASH_PTR(get_irn_intra_n(node, i)); } /* ...mode,... */ - h = 9*h + HASHPTR(get_irn_mode(node)); + h = 9*h + HASH_PTR(get_irn_mode(node)); /* ...and code */ - h = 9*h + HASHPTR(get_irn_op(node)); + h = 9*h + HASH_PTR(get_irn_op(node)); } return h; -- 2.20.1