Commits

Anonymous committed a1c99f2

switch back to using threads if any additional thread is available, don't require at least four

Comments (0)

Files changed (1)

   }
 
 #ifdef HAVE_OPENMP
-  if (omp_get_num_threads() <= omp_get_max_threads() - 4) {
+  if (omp_get_num_threads() < omp_get_max_threads()) {
     mzd_set_ui(C, 0);
     return _mzd_addmul_mp_even(C, A, B, cutoff);
   }
   }
 
 #ifdef HAVE_OPENMP
-  if (omp_get_num_threads() <= omp_get_max_threads()-4) {
+  if (omp_get_num_threads() < omp_get_max_threads()) {
     return _mzd_addmul_mp_even(C, A, B, cutoff);
   }
 #endif