EstervQrCode 1.1.1
Library for qr code manipulation
fp_control_utils.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4 
5 #ifndef OPENCV_CORE_FP_CONTROL_UTILS_HPP
6 #define OPENCV_CORE_FP_CONTROL_UTILS_HPP
7 
8 namespace cv {
9 
10 namespace details {
11 
13 {
14  uint32_t reserved[16]; // 64-bytes
15 }; // FPDenormalsModeState
16 
20 
22 {
23 public:
24  inline explicit FPDenormalsIgnoreHintScope(bool ignore = true)
25  {
27  }
28 
29  inline explicit FPDenormalsIgnoreHintScope(const FPDenormalsModeState& state)
30  {
33  }
34 
36  {
38  }
39 
40 protected:
42 }; // FPDenormalsIgnoreHintScope
43 
45 {
46 public:
47  inline FPDenormalsIgnoreHintScopeNOOP(bool ignore = true) { CV_UNUSED(ignore); }
48  inline FPDenormalsIgnoreHintScopeNOOP(const FPDenormalsModeState& state) { CV_UNUSED(state); }
50 }; // FPDenormalsIgnoreHintScopeNOOP
51 
52 } // namespace details
53 
54 
55 // Should depend on target compilation architecture only
56 // Note: previously added archs should NOT be removed to preserve ABI compatibility
57 #if defined(OPENCV_SUPPORTS_FP_DENORMALS_HINT)
58  // preserve configuration overloading through ports
59 #elif defined(__i386__) || defined(__x86_64__) || defined(_M_X64) || defined(_X86_)
60 typedef details::FPDenormalsIgnoreHintScope FPDenormalsIgnoreHintScope;
61 #define OPENCV_SUPPORTS_FP_DENORMALS_HINT 1
62 #else
63 #define OPENCV_SUPPORTS_FP_DENORMALS_HINT 0
65 #endif
66 
67 } // namespace cv
68 
69 #endif // OPENCV_CORE_FP_CONTROL_UTILS_HPP
Definition: fp_control_utils.hpp:45
~FPDenormalsIgnoreHintScopeNOOP()
Definition: fp_control_utils.hpp:49
FPDenormalsIgnoreHintScopeNOOP(bool ignore=true)
Definition: fp_control_utils.hpp:47
FPDenormalsIgnoreHintScopeNOOP(const FPDenormalsModeState &state)
Definition: fp_control_utils.hpp:48
Definition: fp_control_utils.hpp:22
FPDenormalsIgnoreHintScope(bool ignore=true)
Definition: fp_control_utils.hpp:24
FPDenormalsModeState saved_state
Definition: fp_control_utils.hpp:41
~FPDenormalsIgnoreHintScope()
Definition: fp_control_utils.hpp:35
FPDenormalsIgnoreHintScope(const FPDenormalsModeState &state)
Definition: fp_control_utils.hpp:29
#define CV_EXPORTS
Definition: cvdef.h:435
#define CV_OUT
Definition: cvdef.h:478
CV_EXPORTS bool restoreFPDenormalsState(const FPDenormalsModeState &state)
CV_EXPORTS void setFPDenormalsIgnoreHint(bool ignore, CV_OUT FPDenormalsModeState &state)
CV_EXPORTS int saveFPDenormalsState(CV_OUT FPDenormalsModeState &state)
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441
details::FPDenormalsIgnoreHintScopeNOOP FPDenormalsIgnoreHintScope
Definition: fp_control_utils.hpp:64
Definition: fp_control_utils.hpp:13
uint32_t reserved[16]
Definition: fp_control_utils.hpp:14