/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
#define FIRM_TV_FLTCALC_H
#include "firm_config.h"
+#include "firm_types.h"
#ifdef HAVE_LONG_DOUBLE
/* XXX Set this via autoconf */
*/
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
*/
*/
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);