From c95aa7bde384b57dc68b50969d15f35802602450 Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Thu, 27 Sep 2018 21:31:27 -0700 Subject: [PATCH] Revert "input range must be in [0:2PI]" This reverts commit 6f9820bdd829f2edae43152f3a0b1dadb7855284. --- Source/FastMathFunctions/arm_cos_f32.c | 2 +- .../FilteringFunctions/arm_conv_partial_f32.c | 27 +++---------------- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/Source/FastMathFunctions/arm_cos_f32.c b/Source/FastMathFunctions/arm_cos_f32.c index 5b82c77d..35185f93 100644 --- a/Source/FastMathFunctions/arm_cos_f32.c +++ b/Source/FastMathFunctions/arm_cos_f32.c @@ -38,7 +38,7 @@ * Computes the trigonometric cosine function using a combination of table lookup * and linear interpolation. There are separate functions for * Q15, Q31, and floating-point data types. - * The input to the floating-point version is in radians and in the range [0 2*pi) while the + * The input to the floating-point version is in radians while the * fixed-point Q15 and Q31 have a scaled input with the range * [0 +0.9999] mapping to [0 2*pi). The fixed-point range is chosen so that a * value of 2*pi wraps around to 0. diff --git a/Source/FilteringFunctions/arm_conv_partial_f32.c b/Source/FilteringFunctions/arm_conv_partial_f32.c index f3b15b4a..60140ff5 100644 --- a/Source/FilteringFunctions/arm_conv_partial_f32.c +++ b/Source/FilteringFunctions/arm_conv_partial_f32.c @@ -420,14 +420,7 @@ arm_status arm_conv_partial_f32( count += 4U; /* Update the inputA and inputB pointers for next MAC calculation */ - if ((int32_t)firstIndex - (int32_t)srcBLen + 1 > 0) - { - px = pIn1 + firstIndex - srcBLen + 1 + count; - } - else - { - px = pIn1 + count; - } + px = pIn1 + count; py = pSrc2; /* Decrement the loop counter */ @@ -480,14 +473,7 @@ arm_status arm_conv_partial_f32( count++; /* Update the inputA and inputB pointers for next MAC calculation */ - if ((int32_t)firstIndex - (int32_t)srcBLen + 1 > 0) - { - px = pIn1 + firstIndex - srcBLen + 1 + count; - } - else - { - px = pIn1 + count; - } + px = pIn1 + count; py = pSrc2; /* Decrement the loop counter */ @@ -524,14 +510,7 @@ arm_status arm_conv_partial_f32( count++; /* Update the inputA and inputB pointers for next MAC calculation */ - if ((int32_t)firstIndex - (int32_t)srcBLen + 1 > 0) - { - px = pIn1 + firstIndex - srcBLen + 1 + count; - } - else - { - px = pIn1 + count; - } + px = pIn1 + count; py = pSrc2; /* Decrement the loop counter */