/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
#ifndef FIRM_TV_FLTCALC_H
#define FIRM_TV_FLTCALC_H
-#include "firm_config.h"
+#include <stdlib.h>
#include "firm_types.h"
#ifdef HAVE_LONG_DOUBLE
unsigned char clss; /**< state of this float */
} ieee_descriptor_t;
-struct _fp_value;
-typedef struct _fp_value fp_value;
+struct fp_value;
+typedef struct fp_value fp_value;
/*@{*/
/** internal buffer access
int fc_get_buffer_length(void);
/*}@*/
-void *fc_val_from_str(const char *str, unsigned int len, const ieee_descriptor_t *desc, void *result);
+void *fc_val_from_str(const char *str, size_t len, const ieee_descriptor_t *desc, void *result);
/** get the representation of a floating point value
* This function tries to builds a representation having the same value as the
/**
* Return non-zero if a given value can be converted lossless into another precision.
*/
-int fc_can_lossless_conv_to(const fp_value *value, char exp_size, char mant_size);
+int fc_can_lossless_conv_to(const fp_value *value, const ieee_descriptor_t *desc);
/** Set new rounding mode
* This function sets the rounding mode to one of the following, returning