diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-08-24 06:15:09 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-08-24 06:15:09 -0400 |
commit | f7efde3a2645af4dad2e921a3412ea63d914ffe6 (patch) | |
tree | 9e92452b713aaa3c9a85dd27838f63b57d71cb3a /rw.cpp | |
parent | ded4fd50a25433e2be0ba9d69aa00fcbeb85952b (diff) | |
download | cryptopp-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.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)
|