if(X86 OR X86_64)
if(NOT APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 4)
- set(OPENCV_EXTRA_C_FLAGS_RELEASE "${OPENCV_EXTRA_C_FLAGS_RELEASE} -mfpmath=387")
+ if(ENABLE_SSE2)
+ set(OPENCV_EXTRA_C_FLAGS_RELEASE "${OPENCV_EXTRA_C_FLAGS_RELEASE} -mfpmath=sse")# !! important - be on the same wave with x64 compilers
+ else()
+ set(OPENCV_EXTRA_C_FLAGS_RELEASE "${OPENCV_EXTRA_C_FLAGS_RELEASE} -mfpmath=387")
+ endif()
endif()
endif()
}
else
#endif
- //vz why do we need unroll here? no sse = no need to unroll
{
for( ; j <= n - 4; j += 4 )
{
}
else
#endif
- //vz no need to unroll here - if no sse
{
for( ; j <= n - 4; j += 4 )
{
}
else
#endif
- //vz why do we need unroll here? no sse = no unroll
{
for( ; j <= n - 4; j += 4 )
{
TEST( Features2d_DescriptorExtractor_SURF, regression )
{
- CV_DescriptorExtractorTest<L2<float> > test( "descriptor-surf", 0.035f,
+ CV_DescriptorExtractorTest<L2<float> > test( "descriptor-surf", 0.05f,
DescriptorExtractor::create("SURF"), 0.147372f );
test.safe_run();
}