summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7d65d58)
raw | patch | inline | side by side (parent: 7d65d58)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Wed, 21 Jul 2010 13:30:04 +0000 (15:30 +0200) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Wed, 21 Jul 2010 13:30:04 +0000 (15:30 +0200) |
configure.ac | patch | blob | history | |
src/display/nr-filter-gaussian.cpp | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index e73e51218cbb8e1a569791f47f944fa0eea18ffe..832cfe23c32f1409cac8456245b068cfd1b03c1d 100644 (file)
--- a/configure.ac
+++ b/configure.ac
dnl We have it, now set up the flags
CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
AC_CHECK_HEADER(omp.h)
+ AC_DEFINE(HAVE_OPENMP, 1, [Use OpenMP])
fi
dnl ******************************
index 9509eaef7f2e4b02e3aeb19c25c5aac57d6252c5..a45e838da1ac4e3197fe3f744346b79f4ef07d31 100644 (file)
double const deviation_y_org = _deviation_y * trans.expansionY();
int const PC = NR_PIXBLOCK_BPP(in);
#if HAVE_OPENMP
- int const NTHREADS = std::max(1,std::min(8, Inkscape::Preferences::get()->getInt("/options/threading/numthreads", omp_get_num_procs())));
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ int const NTHREADS = prefs->getIntLimited("/options/threading/numthreads", omp_get_num_procs(), 1, 256);
#else
int const NTHREADS = 1;
#endif // HAVE_OPENMP