Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
8d130ff1
Commit
8d130ff1
authored
Apr 25, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed most of the floating-point accuracy problems for x86 gcc
parent
a6c261be
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
OpenCVCompilerOptions.cmake
cmake/OpenCVCompilerOptions.cmake
+4
-0
stat.cpp
modules/core/src/stat.cpp
+0
-3
test_features2d.cpp
modules/nonfree/test/test_features2d.cpp
+1
-1
No files found.
cmake/OpenCVCompilerOptions.cmake
View file @
8d130ff1
...
...
@@ -109,9 +109,13 @@ if(CMAKE_COMPILER_IS_GNUCXX)
if
(
X86 OR X86_64
)
if
(
NOT APPLE AND CMAKE_SIZEOF_VOID_P EQUAL 4
)
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
()
# Profiling?
if
(
ENABLE_PROFILING
)
...
...
modules/core/src/stat.cpp
View file @
8d130ff1
...
...
@@ -834,7 +834,6 @@ float normL2Sqr_(const float* a, const float* b, int n)
}
else
#endif
//vz why do we need unroll here? no sse = no need to unroll
{
for
(
;
j
<=
n
-
4
;
j
+=
4
)
{
...
...
@@ -875,7 +874,6 @@ float normL1_(const float* a, const float* b, int n)
}
else
#endif
//vz no need to unroll here - if no sse
{
for
(
;
j
<=
n
-
4
;
j
+=
4
)
{
...
...
@@ -916,7 +914,6 @@ int normL1_(const uchar* a, const uchar* b, int n)
}
else
#endif
//vz why do we need unroll here? no sse = no unroll
{
for
(
;
j
<=
n
-
4
;
j
+=
4
)
{
...
...
modules/nonfree/test/test_features2d.cpp
View file @
8d130ff1
...
...
@@ -992,7 +992,7 @@ TEST( Features2d_DescriptorExtractor_SIFT, regression )
TEST
(
Features2d_DescriptorExtractor_SURF
,
regression
)
{
CV_DescriptorExtractorTest
<
L2
<
float
>
>
test
(
"descriptor-surf"
,
0.0
3
5
f
,
CV_DescriptorExtractorTest
<
L2
<
float
>
>
test
(
"descriptor-surf"
,
0.05
f
,
DescriptorExtractor
::
create
(
"SURF"
),
0.147372
f
);
test
.
safe_run
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment