From a9dfd52d3bb8ec5fc0cf5223e27e3e7172fde448 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Wed, 8 Nov 2017 02:42:02 -0500 Subject: [PATCH 1/3] Fix floating point errors * swh - dyson_compress_1403, fix NaN * swh - shaper_1187, division with 0 --- dyson_compress_1403.xml | 2 +- shaper_1187.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dyson_compress_1403.xml b/dyson_compress_1403.xml index 2770e11..dfa51b7 100644 --- a/dyson_compress_1403.xml +++ b/dyson_compress_1403.xml @@ -326,7 +326,7 @@ Release time (s)

Controls the time taken for the compressor to relax its gain control over the input signal.

- +
diff --git a/shaper_1187.xml b/shaper_1187.xml index f776922..a9a71a2 100644 --- a/shaper_1187.xml +++ b/shaper_1187.xml @@ -19,8 +19,8 @@ float shape = 0.0f; if (shapep < 1.0f && shapep > -1.0f) { shape = 1.0f; -} else if (shape < 0) { - shape = -1.0f / shape; +} else if (shapep < 0) { + shape = -1.0f / shapep; } else { shape = shapep; } From 28b79d7c3a856b45b69c6c6d02009c15b3f58b53 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Thu, 9 Nov 2017 13:43:20 -0500 Subject: [PATCH 2/3] Move denormal check to DSP --- dyson_compress_1403.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dyson_compress_1403.xml b/dyson_compress_1403.xml index dfa51b7..e6f5d4c 100644 --- a/dyson_compress_1403.xml +++ b/dyson_compress_1403.xml @@ -142,7 +142,7 @@ Release time (s)

Controls the time taken for the compressor to relax its gain control over the input signal.

- +
From 71e84ca2891cd97d26282a321b45aea49f49cd50 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Thu, 9 Nov 2017 13:44:15 -0500 Subject: [PATCH 3/3] Keep existing formatting PEMDAS will allow it, but let's be consistent. ;) --- dyson_compress_1403.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyson_compress_1403.xml b/dyson_compress_1403.xml index e6f5d4c..8dfff7f 100644 --- a/dyson_compress_1403.xml +++ b/dyson_compress_1403.xml @@ -142,7 +142,7 @@