mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-03 00:49:01 +08:00
Enable pragma for SIMD also when _OPENMP is defined
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
f0fb6809e3
commit
88d4028a5a
@ -21,7 +21,7 @@ namespace tesseract {
|
||||
// Computes and returns the dot product of the two n-vectors u and v.
|
||||
double DotProductNative(const double *u, const double *v, int n) {
|
||||
double total = 0.0;
|
||||
#if defined(OPENMP_SIMD)
|
||||
#if defined(OPENMP_SIMD) || defined(_OPENMP)
|
||||
#pragma omp simd reduction(+:total)
|
||||
#endif
|
||||
for (int k = 0; k < n; ++k) {
|
||||
|
Loading…
Reference in New Issue
Block a user