From f0c1a882c651b56c5ac0c8f1dcc9f81632c0ee83 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 4 Dec 2012 02:35:52 +0100 Subject: [PATCH] tv: remove unused float_to_int_mode --- ir/tv/tv.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/ir/tv/tv.c b/ir/tv/tv.c index 38f892520..ea2a4056e 100644 --- a/ir/tv/tv.c +++ b/ir/tv/tv.c @@ -55,14 +55,6 @@ target values */ #define N_CONSTANTS 2048 -/* unused, float to int doesn't work yet */ -typedef enum float_to_int_mode { - TRUNCATE, - ROUND -} float_to_int_mode; - -static float_to_int_mode current_float_to_int_mode = TRUNCATE; - /**************************************************************************** * local definitions and macros ****************************************************************************/ @@ -806,14 +798,7 @@ ir_tarval *tarval_convert_to(ir_tarval *src, ir_mode *dst_mode) return get_tarval(fc_get_buffer(), fc_get_buffer_length(), dst_mode); case irms_int_number: - switch (current_float_to_int_mode) { - case TRUNCATE: - res = fc_int((const fp_value*) src->value, NULL); - break; - case ROUND: - res = fc_rnd((const fp_value*) src->value, NULL); - break; - } + res = fc_int((const fp_value*) src->value, NULL); buffer = (char*) alloca(sc_get_buffer_length()); if (! fc_flt2int(res, buffer, dst_mode)) return tarval_bad; -- 2.20.1