From c78fa5609eee08bfcc29e4298bf3150ce1438571 Mon Sep 17 00:00:00 2001 From: Timo Wischer Date: Fri, 16 Nov 2018 16:54:06 +0100 Subject: [PATCH] memops: Remove not used conversion macros Change-Id: Ie6d7f0e5e4f748def932dc670daa63c07b5c40d7 Signed-off-by: Timo Wischer --- common/memops.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/common/memops.c b/common/memops.c index ea5c13cd..0b4c50ba 100644 --- a/common/memops.c +++ b/common/memops.c @@ -137,17 +137,6 @@ (d) = f_round ((s) * SAMPLE_24BIT_SCALING);\ } -/* call this when "s" has already been scaled (e.g. when dithering) - */ - -#define float_24u32_scaled(s, d)\ - if ((s) <= SAMPLE_24BIT_MIN_F) {\ - (d) = SAMPLE_24BIT_MIN << 8;\ - } else if ((s) >= SAMPLE_24BIT_MAX_F) { \ - (d) = SAMPLE_24BIT_MAX << 8; \ - } else {\ - (d) = f_round ((s)) << 8; \ - } #define float_24(s, d) \ if ((s) <= NORMALIZED_FLOAT_MIN) {\ @@ -158,18 +147,6 @@ (d) = f_round ((s) * SAMPLE_24BIT_SCALING);\ } -/* call this when "s" has already been scaled (e.g. when dithering) - */ - -#define float_24_scaled(s, d)\ - if ((s) <= SAMPLE_24BIT_MIN_F) {\ - (d) = SAMPLE_24BIT_MIN;\ - } else if ((s) >= SAMPLE_24BIT_MAX_F) { \ - (d) = SAMPLE_24BIT_MAX; \ - } else {\ - (d) = f_round ((s)); \ - } - #if defined (__SSE2__) && !defined (__sun__)