can now dump new out edges
[libfirm] / ir / tv / fltcalc.h
index 9a939be..a4745c1 100644 (file)
@@ -28,6 +28,7 @@
 #define FIRM_TV_FLTCALC_H
 
 #include "firm_config.h"
+#include "firm_types.h"
 
 #ifdef HAVE_LONG_DOUBLE
 /* XXX Set this via autoconf */
@@ -170,6 +171,11 @@ char *fc_print(const fp_value *a, char *buf, int buflen, unsigned base);
  */
 int fc_comp(const fp_value *a, const fp_value *b);
 
+/**
+ * Converts an floating point value into an integer value.
+ */
+int fc_flt2int(const fp_value *a, void *result, ir_mode *dst_mode);
+
 /**
  * Returns non-zero if the mantissa is zero, i.e. 1.0Exxx
  */
@@ -256,6 +262,11 @@ unsigned char fc_sub_bits(const fp_value *val, unsigned num_bit, unsigned byte_o
  */
 unsigned fc_set_immediate_precision(unsigned bits);
 
+/**
+ * Returns non-zero if the result of the last operation was exact.
+ */
+int fc_is_exact(void);
+
 void init_fltcalc(int precision);
 void finish_fltcalc(void);