From 288c1f69b87e6a3c2f09f8feac581515e03eda55 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Thu, 17 May 2018 08:29:24 +0200 Subject: [PATCH] Replaced sin() to sinf() and log() to logf() for using floats instead of doubles. --- EngineMkI.cpp | 6 ++++-- dx7note.cpp | 6 ++++-- sin.cpp | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/EngineMkI.cpp b/EngineMkI.cpp index a4a1709..2a88c7f 100644 --- a/EngineMkI.cpp +++ b/EngineMkI.cpp @@ -37,7 +37,8 @@ #ifdef _WIN32 #if _MSC_VER < 1800 FRAC_NUM log2(FRAC_NUM n) { - return log(n) / log(2.0); + //return log(n) / log(2.0); + return logf(n) / logf(2.0); } FRAC_NUM round(FRAC_NUM n) { return n < 0.0 ? ceil(n - 0.5) : floor(n + 0.5); @@ -81,7 +82,8 @@ EngineMkI::EngineMkI() { float bitReso = SINLOG_TABLESIZE; for(int i=0;i