summaryrefslogtreecommitdiffstats
path: root/vec_pseudo.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-11-25 14:54:13 -0500
committerErik Schnetter <schnetter@gmail.com>2013-11-25 14:54:13 -0500
commit942b1fa0654668576d3990c9c3ad721aaf703f7e (patch)
treee42ecbef9e0bc836528db5c33259fe80b3a783e2 /vec_pseudo.h
parentec33e3b30b4324cad3f5c26186cc2d2620708a0f (diff)
downloadvecmathlib-942b1fa0654668576d3990c9c3ad721aaf703f7e.zip
vecmathlib-942b1fa0654668576d3990c9c3ad721aaf703f7e.tar.gz
If VML_NO_IOSTREAM is set, then don’t provide any iostream operations
This reduces the size of the library.
Diffstat (limited to 'vec_pseudo.h')
-rw-r--r--vec_pseudo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/vec_pseudo.h b/vec_pseudo.h
index 8fa80dc..2424d40 100644
--- a/vec_pseudo.h
+++ b/vec_pseudo.h
@@ -11,8 +11,10 @@
#include <cmath>
#include <climits>
#include <cstdlib>
+#ifndef VML_NO_IOSTREAM
+# include <sstream>
+#endif
#include <string>
-#include <sstream>
@@ -483,6 +485,7 @@ namespace vecmathlib {
typedef real_t vector_t[size];
static int const alignment = sizeof(real_t);
+#ifndef VML_NO_IOSTREAM
static char const* name()
{
static std::string name_;
@@ -493,6 +496,7 @@ namespace vecmathlib {
}
return name_.c_str();
}
+#endif
void barrier()
{
#if defined __GNUC__ && !defined __clang__ && !defined __ICC
OpenPOWER on IntegriCloud