From 5ebddd251b9d6ec845cd95a4bb543616a5db062a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 15 Jun 2005 12:26:12 +0000 Subject: [PATCH] renamed gen_swapped_pnc() into more "mathematical" get_inversed_pnc() [r6019] --- ir/ir/irnode.c | 6 +++--- ir/ir/irnode.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 47a5ce5a1..e3b5fa3aa 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -54,7 +54,7 @@ const char *get_pnc_string(int pnc) { } /* - * Calculates the negated pnc condition. + * Calculates the negated (Complement(R)) pnc condition. */ int get_negated_pnc(int pnc) { @@ -79,9 +79,9 @@ get_negated_pnc(int pnc) { return 99; /* to shut up gcc */ } -/* Calculates the swapped pnc condition, i.e., "<" --> ">" */ +/* Calculates the inversed (R^-1) pnc condition, i.e., "<" --> ">" */ int -get_swapped_pnc(int pnc) { +get_inversed_pnc(int pnc) { int code = pnc & ~(pn_Cmp_Lt|pn_Cmp_Gt); int lesser = pnc & pn_Cmp_Lt; int greater = pnc & pn_Cmp_Gt; diff --git a/ir/ir/irnode.h b/ir/ir/irnode.h index cb654966e..86063524c 100644 --- a/ir/ir/irnode.h +++ b/ir/ir/irnode.h @@ -681,11 +681,11 @@ typedef enum { /** returns the pnc name from an pnc constant */ const char *get_pnc_string(int pnc); -/** Calculates the negated pnc condition. */ +/** Calculates the negated (Complement(R)) pnc condition. */ int get_negated_pnc(int pnc); -/** Calculates the swapped pnc condition, i.e., "<" --> ">" */ -int get_swapped_pnc(int pnc); +/** Calculates the inversed (R^-1) pnc condition, i.e., "<" --> ">" */ +int get_inversed_pnc(int pnc); ir_node *get_Cmp_left (ir_node *node); void set_Cmp_left (ir_node *node, ir_node *left); -- 2.20.1