X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Ffltcalc.c;h=56c1ce3e4a1f2585ec758586b7bb47ec004645ce;hb=0d61f4e9a295d71deca66e1580273e484e7f0f9f;hp=2a86875500e65e503f414d4182a957cee7b06b1a;hpb=47054ed6408c16204e1353a28459b0258a343e8b;p=libfirm diff --git a/ir/tv/fltcalc.c b/ir/tv/fltcalc.c index 2a8687550..56c1ce3e4 100644 --- a/ir/tv/fltcalc.c +++ b/ir/tv/fltcalc.c @@ -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"); } /*