X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Ffltcalc.h;h=607e3d3d433d3d3350d103dbb95e4b252c02fca2;hb=b50ba7aa16edbf7d978c182d90b2e5f08c6f6a56;hp=a66aa7b7f300e1550eeb7ab1fcc9541fc1d79897;hpb=5ee28ffe76f1c0cd211b9ae673e400b646cfe96c;p=libfirm diff --git a/ir/tv/fltcalc.h b/ir/tv/fltcalc.h index a66aa7b7f..607e3d3d4 100644 --- a/ir/tv/fltcalc.h +++ b/ir/tv/fltcalc.h @@ -1,5 +1,5 @@ /* - * 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. * @@ -27,7 +27,7 @@ #ifndef FIRM_TV_FLTCALC_H #define FIRM_TV_FLTCALC_H -#include "firm_config.h" +#include #include "firm_types.h" #ifdef HAVE_LONG_DOUBLE @@ -76,8 +76,8 @@ typedef struct ieee_descriptor_t { 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 @@ -90,7 +90,7 @@ const void *fc_get_buffer(void); 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 @@ -208,7 +208,7 @@ int fc_get_exponent(const fp_value *value); /** * 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