From c896fe520a89bbf2436783e076e07366b1b34a41 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 9 Apr 2020 13:51:16 +0200 Subject: [PATCH] WaveSabreCore: remove x == 0.0 special-case This these already returns 1.0 when x = 0.0, so no need to special case it. --- WaveSabreCore/src/Helpers.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/WaveSabreCore/src/Helpers.cpp b/WaveSabreCore/src/Helpers.cpp index ca89d544..7e7a3084 100644 --- a/WaveSabreCore/src/Helpers.cpp +++ b/WaveSabreCore/src/Helpers.cpp @@ -116,9 +116,6 @@ namespace WaveSabreCore double Helpers::Exp2(double x) { #if defined(_MSC_VER) && defined(_M_IX86) - if (x == 0.0) - return 1.0; - return fpuExp2(x); #else return pow(2.0, x); @@ -128,9 +125,6 @@ namespace WaveSabreCore float Helpers::Exp2F(float x) { #if defined(_MSC_VER) && defined(_M_IX86) - if (x == 0.0f) - return 1.0f; - return fpuExp2F(x); #else return powf(2.0f, x);