mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
dnn: *_DENORMALS_ZERO_MODE is defined for SSE3
This commit is contained in:
parent
a9b030591b
commit
73aa5f567b
@ -1230,7 +1230,7 @@ public:
|
|||||||
CV_TRACE_FUNCTION();
|
CV_TRACE_FUNCTION();
|
||||||
CV_TRACE_ARG_VALUE(name, "name", name.c_str());
|
CV_TRACE_ARG_VALUE(name, "name", name.c_str());
|
||||||
|
|
||||||
#if CV_TRY_SSE
|
#if CV_SSE3
|
||||||
uint32_t ftzMode = _MM_GET_FLUSH_ZERO_MODE();
|
uint32_t ftzMode = _MM_GET_FLUSH_ZERO_MODE();
|
||||||
uint32_t dazMode = _MM_GET_DENORMALS_ZERO_MODE();
|
uint32_t dazMode = _MM_GET_DENORMALS_ZERO_MODE();
|
||||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
||||||
@ -1319,7 +1319,7 @@ public:
|
|||||||
ParallelConv::run(inputs[0], outputs[0], weightsMat, biasvec, reluslope,
|
ParallelConv::run(inputs[0], outputs[0], weightsMat, biasvec, reluslope,
|
||||||
kernel_size, strides, pads_begin, pads_end, dilations, activ.get(), ngroups, nstripes);
|
kernel_size, strides, pads_begin, pads_end, dilations, activ.get(), ngroups, nstripes);
|
||||||
}
|
}
|
||||||
#if CV_TRY_SSE
|
#if CV_SSE3
|
||||||
_MM_SET_FLUSH_ZERO_MODE(ftzMode);
|
_MM_SET_FLUSH_ZERO_MODE(ftzMode);
|
||||||
_MM_SET_DENORMALS_ZERO_MODE(dazMode);
|
_MM_SET_DENORMALS_ZERO_MODE(dazMode);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user