#include <simddetect.h>
Definition at line 31 of file simddetect.h.
◆ IsAVX2Available()
static bool tesseract::SIMDDetect::IsAVX2Available |
( |
| ) |
|
|
inlinestatic |
Definition at line 38 of file simddetect.h.
39 return detector.avx2_available_;
◆ IsAVX512BWAvailable()
static bool tesseract::SIMDDetect::IsAVX512BWAvailable |
( |
| ) |
|
|
inlinestatic |
Definition at line 46 of file simddetect.h.
47 return detector.avx512BW_available_;
◆ IsAVX512FAvailable()
static bool tesseract::SIMDDetect::IsAVX512FAvailable |
( |
| ) |
|
|
inlinestatic |
Definition at line 42 of file simddetect.h.
43 return detector.avx512F_available_;
◆ IsAVXAvailable()
static bool tesseract::SIMDDetect::IsAVXAvailable |
( |
| ) |
|
|
inlinestatic |
Definition at line 34 of file simddetect.h.
35 return detector.avx_available_;
◆ IsFMAAvailable()
static bool tesseract::SIMDDetect::IsFMAAvailable |
( |
| ) |
|
|
inlinestatic |
Definition at line 50 of file simddetect.h.
51 return detector.fma_available_;
◆ IsSSEAvailable()
static bool tesseract::SIMDDetect::IsSSEAvailable |
( |
| ) |
|
|
inlinestatic |
Definition at line 54 of file simddetect.h.
55 return detector.sse_available_;
◆ Update()
void tesseract::SIMDDetect::Update |
( |
| ) |
|
|
static |
Definition at line 173 of file simddetect.cpp.
176 const char* dotproduct_method =
"generic";
177 if (!strcmp(dotproduct.string(),
"auto")) {
179 }
else if (!strcmp(dotproduct.string(),
"generic")) {
181 SetDotProduct(DotProductGeneric);
182 dotproduct_method =
"generic";
183 }
else if (!strcmp(dotproduct.string(),
"native")) {
186 dotproduct_method =
"native";
188 }
else if (!strcmp(dotproduct.string(),
"avx2")) {
191 dotproduct_method =
"avx2";
194 }
else if (!strcmp(dotproduct.string(),
"avx")) {
197 dotproduct_method =
"avx";
200 }
else if (!strcmp(dotproduct.string(),
"fma")) {
203 dotproduct_method =
"fma";
206 }
else if (!strcmp(dotproduct.string(),
"sse")) {
209 dotproduct_method =
"sse";
211 }
else if (!strcmp(dotproduct.string(),
"std::inner_product")) {
213 SetDotProduct(DotProductStdInnerProduct);
214 dotproduct_method =
"std::inner_product";
217 tprintf(
"Warning, ignoring unsupported config variable value: dotproduct=%s\n",
218 dotproduct.string());
219 tprintf(
"Support values for dotproduct: auto generic native"
226 " std::inner_product.\n");
229 dotproduct.set_value(dotproduct_method);
The documentation for this class was generated from the following files: