X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Ffltcalc.c;h=56c1ce3e4a1f2585ec758586b7bb47ec004645ce;hb=0d61f4e9a295d71deca66e1580273e484e7f0f9f;hp=4480a269fa51ec3ec12b09a9e9885f73677447bc;hpb=7971bd301f173d9d926cf40a4bdb700f42b8c07a;p=libfirm diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index 4480a269f..56c1ce3e4 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -28,6 +28,7 @@ #include "fltcalc.h" #include "strcalc.h" +#include "error.h" #include /* undef some reused constants defined by math.h */ @@ -43,8 +44,7 @@ #include "xmalloc.h" -#if defined(HAVE_LONG_DOUBLE) && !defined(__CYGWIN__) -/* No strtold on windows and no replacement yet */ +#ifndef HAVE_STRTOLD #define strtold(s, e) strtod(s, e) #endif @@ -1547,10 +1547,7 @@ fp_value *fc_rnd(const fp_value *a, fp_value *result) TRACEPRINTF(("%s ", fc_print(a, buffer, sizeof(buffer), FC_PACKED))); TRACEPRINTF(("rounded to integer ")); - assert(!"fc_rnd() not yet implemented"); - - TRACEPRINTF(("= %s\n", fc_print(result, buffer, sizeof(buffer), FC_PACKED))); - return result; + panic("fc_rnd() not yet implemented"); } /*