From 0da01cb255e589681f21b01a66445807a4e2e43f Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 18 May 2014 13:18:14 +1000 Subject: [PATCH] src/share/replaygain_synthesis/ : Remove old fast float math hack. Old code was for the Intel compiler, had no appreciable performance benefits and doesn't actually work with current version of that compiler. Patch-from: lvqcl --- src/share/Makefile.am | 1 - .../include/private/fast_float_math_hack.h | 39 ------------------- .../replaygain_synthesis.c | 1 - .../replaygain_synthesis_static.vcproj | 4 -- 4 files changed, 45 deletions(-) delete mode 100644 src/share/replaygain_synthesis/include/private/fast_float_math_hack.h diff --git a/src/share/Makefile.am b/src/share/Makefile.am index 6a52156c..48a74691 100644 --- a/src/share/Makefile.am +++ b/src/share/Makefile.am @@ -31,7 +31,6 @@ EXTRA_DIST = \ replaygain_analysis/replaygain_analysis_static.vcproj \ replaygain_synthesis/Makefile.lite \ replaygain_synthesis/replaygain_synthesis_static.vcproj \ - replaygain_synthesis/include/private/fast_float_math_hack.h \ utf8/Makefile.lite \ utf8/charmaps.h \ utf8/makemap.c \ diff --git a/src/share/replaygain_synthesis/include/private/fast_float_math_hack.h b/src/share/replaygain_synthesis/include/private/fast_float_math_hack.h deleted file mode 100644 index d8608fc4..00000000 --- a/src/share/replaygain_synthesis/include/private/fast_float_math_hack.h +++ /dev/null @@ -1,39 +0,0 @@ -# ifdef __ICL /* only Intel C compiler has fmath ??? */ - - #include - -/* Nearest integer, absolute value, etc. */ - - #define ceil ceilf - #define fabs fabsf - #define floor floorf - #define fmod fmodf - #define rint rintf - #define hypot hypotf - -/* Power functions */ - - #define pow powf - #define sqrt sqrtf - -/* Exponential and logarithmic functions */ - - #define exp expf - #define log logf - #define log10 log10f - -/* Trigonometric functions */ - - #define acos acosf - #define asin asinf - #define atan atanf - #define cos cosf - #define sin sinf - #define tan tanf - -/* Hyperbolic functions */ - #define cosh coshf - #define sinh sinhf - #define tanh tanhf - -# endif diff --git a/src/share/replaygain_synthesis/replaygain_synthesis.c b/src/share/replaygain_synthesis/replaygain_synthesis.c index 0007c037..d65b4124 100644 --- a/src/share/replaygain_synthesis/replaygain_synthesis.c +++ b/src/share/replaygain_synthesis/replaygain_synthesis.c @@ -41,7 +41,6 @@ #include /* for memset() */ #include -#include "private/fast_float_math_hack.h" #include "replaygain_synthesis.h" #include "FLAC/assert.h" diff --git a/src/share/replaygain_synthesis/replaygain_synthesis_static.vcproj b/src/share/replaygain_synthesis/replaygain_synthesis_static.vcproj index d2f40c8d..e0881a51 100644 --- a/src/share/replaygain_synthesis/replaygain_synthesis_static.vcproj +++ b/src/share/replaygain_synthesis/replaygain_synthesis_static.vcproj @@ -155,10 +155,6 @@ Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > - -