[beast: 26/31] BSE: tests: fix subnormals compilation warnings



commit eb8935660afed1af89f1772f6b0f62da4bc2d863
Author: Tim Janik <timj gnu org>
Date:   Fri Jun 12 19:26:36 2015 +0200

    BSE: tests: fix subnormals compilation warnings

 bse/tests/Makefile.am       |    5 +++--
 bse/tests/subnormals-aux.cc |    1 +
 bse/tests/subnormals.cc     |    1 +
 bse/tests/subnormals.hh     |    8 ++++++++
 4 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/bse/tests/Makefile.am b/bse/tests/Makefile.am
index 26483af..38d0b15 100644
--- a/bse/tests/Makefile.am
+++ b/bse/tests/Makefile.am
@@ -30,11 +30,12 @@ TESTS          += testcxx
 testcxx_SOURCES = testcxx.cc
 testcxx_LDADD   = $(progs_ldadd)
 
-TESTS              += subnormals 
-PERFTESTS          += subnormals 
+TESTS              += subnormals
+PERFTESTS          += subnormals
 subnormals_SOURCES  = subnormals.cc subnormals-aux.cc
 subnormals_LDADD    = $(progs_ldadd)
 subnormals_CXXFLAGS = $(AM_CXXFLAGS) -ffast-math
+EXTRA_DIST         += subnormals.hh
 
 TESTS             += loophandle
 loophandle_SOURCES = loophandle.cc
diff --git a/bse/tests/subnormals-aux.cc b/bse/tests/subnormals-aux.cc
index a6eb5a3..17b7876 100644
--- a/bse/tests/subnormals-aux.cc
+++ b/bse/tests/subnormals-aux.cc
@@ -1,6 +1,7 @@
 // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
 #include <bse/bse.hh>
 #include <bse/bseieee754.hh>
+#include "subnormals.hh"
 
 float
 test1f (float v)
diff --git a/bse/tests/subnormals.cc b/bse/tests/subnormals.cc
index a19fb90..b849a9a 100644
--- a/bse/tests/subnormals.cc
+++ b/bse/tests/subnormals.cc
@@ -7,6 +7,7 @@
 #ifdef __SSE__
 #include <xmmintrin.h>
 #endif
+#include "subnormals.hh"
 
 #if 1
 inline float  test1f (float v) { return v;     }
diff --git a/bse/tests/subnormals.hh b/bse/tests/subnormals.hh
new file mode 100644
index 0000000..0606f01
--- /dev/null
+++ b/bse/tests/subnormals.hh
@@ -0,0 +1,8 @@
+bool  check_denormals_are_zero();
+float test1f (float v);
+float test2f (float v);
+float test3f (float v);
+float test4f (float v);
+float test5f (float v);
+
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]