Commit 5ebddd25 authored by Michael Beck's avatar Michael Beck
Browse files

renamed gen_swapped_pnc() into more "mathematical" get_inversed_pnc()

[r6019]
parent 2b7eca52
......@@ -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;
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment