src/share/replaygain_synthesis/ : Remove old fast float math hack.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 18 May 2014 03:18:14 +0000 (13:18 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 18 May 2014 03:44:23 +0000 (13:44 +1000)
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 <lvqcl.mail@gmail.com>

src/share/Makefile.am
src/share/replaygain_synthesis/include/private/fast_float_math_hack.h [deleted file]
src/share/replaygain_synthesis/replaygain_synthesis.c
src/share/replaygain_synthesis/replaygain_synthesis_static.vcproj

index 6a52156..48a7469 100644 (file)
@@ -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 (file)
index d8608fc..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#   ifdef __ICL /* only Intel C compiler has fmath ??? */
-
-    #include <mathf.h>
-
-/* 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
index 0007c03..d65b412 100644 (file)
@@ -41,7 +41,6 @@
 
 #include <string.h> /* for memset() */
 #include <math.h>
-#include "private/fast_float_math_hack.h"
 #include "replaygain_synthesis.h"
 #include "FLAC/assert.h"
 
index d2f40c8..e0881a5 100644 (file)
                        Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
                        UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
                        >\r
-                       <File\r
-                               RelativePath=".\include\private\fast_float_math_hack.h"\r
-                               >\r
-                       </File>\r
                </Filter>\r
                <Filter\r
                        Name="Public Header Files"\r