summaryrefslogtreecommitdiff
path: root/cgcalc.h
diff options
context:
space:
mode:
authorJohn van Groningen2003-07-11 13:47:24 +0000
committerJohn van Groningen2003-07-11 13:47:24 +0000
commit2255def3b1d52edce2b87c30ddff0a206abda7cd (patch)
tree406f668067c28094b4a64a59d6549554bcb54f51 /cgcalc.h
parentfix bug in floating point subtract and divide (diff)
add .c and .h files
Diffstat (limited to 'cgcalc.h')
-rw-r--r--cgcalc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/cgcalc.h b/cgcalc.h
new file mode 100644
index 0000000..6eaaae5
--- /dev/null
+++ b/cgcalc.h
@@ -0,0 +1,15 @@
+extern void calculate_graph_register_uses (INSTRUCTION_GRAPH graph);
+extern void count_graph (INSTRUCTION_GRAPH graph);
+extern void mark_graph_1 (INSTRUCTION_GRAPH graph);
+extern void mark_graph_2 (INSTRUCTION_GRAPH graph);
+extern void mark_and_count_graph (INSTRUCTION_GRAPH graph);
+
+#ifdef I486
+/* # define A_FACTOR 2 */
+/* # define D_FACTOR 2 */
+# define AD_REG_WEIGHT(n_a_regs,n_d_regs) ((n_a_regs)+(n_d_regs))
+#else
+/* # define A_FACTOR 7 */
+/* # define D_FACTOR 3 */
+# define AD_REG_WEIGHT(n_a_regs,n_d_regs) ((((n_a_regs)<<3)-(n_a_regs))+((n_d_regs)+(n_d_regs)+(n_d_regs)))
+#endif