summaryrefslogtreecommitdiff
path: root/rw.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-08-24 06:15:09 -0400
committerJeffrey Walton <noloader@gmail.com>2016-08-24 06:15:09 -0400
commitf7efde3a2645af4dad2e921a3412ea63d914ffe6 (patch)
tree9e92452b713aaa3c9a85dd27838f63b57d71cb3a /rw.cpp
parentded4fd50a25433e2be0ba9d69aa00fcbeb85952b (diff)
downloadcryptopp-git-f7efde3a2645af4dad2e921a3412ea63d914ffe6.tar.gz
Enable OpenMP by default for RWSS if -fopnmp is present.
The user asked for OMP, and they can turn it off for the source file if they desire
Diffstat (limited to 'rw.cpp')
-rw-r--r--rw.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rw.cpp b/rw.cpp
index 0767a132..15aa6646 100644
--- a/rw.cpp
+++ b/rw.cpp
@@ -11,7 +11,11 @@
#ifndef CRYPTOPP_IMPORTS
+#if defined(_OPENMP)
+static const bool CRYPTOPP_RW_USE_OMP = true;
+#else
static const bool CRYPTOPP_RW_USE_OMP = false;
+#endif
NAMESPACE_BEGIN(CryptoPP)