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
57fc5e00
Commit
57fc5e00
authored
Nov 01, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #126 from vpisarev:bug_fixes3
parents
9a01532c
3d0c0881
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
21 deletions
+16
-21
build_framework.py
ios/build_framework.py
+3
-3
iOS.cmake
ios/cmake/Modules/Platform/iOS.cmake
+1
-1
Toolchain-iPhoneOS_Xcode.cmake
ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake
+2
-2
Toolchain-iPhoneSimulator_Xcode.cmake
ios/cmake/Toolchains/Toolchain-iPhoneSimulator_Xcode.cmake
+2
-2
operations.hpp
modules/core/include/opencv2/core/operations.hpp
+8
-13
No files found.
ios/build_framework.py
View file @
57fc5e00
...
...
@@ -13,16 +13,16 @@ Script will create <outputdir>, if it's missing, and a few its subdirectories:
<outputdir>
build/
iPhoneOS/
iPhoneOS
-*
/
[cmake-generated build tree for an iOS device target]
iPhoneSimulator/
[cmake-generated build tree for iOS simulator]
OpenCV
.framework/
opencv2
.framework/
[the framework content]
The script should handle minor OpenCV updates efficiently
- it does not recompile the library from scratch each time.
However,
OpenCV
.framework directory is erased and recreated on each run.
However,
opencv2
.framework directory is erased and recreated on each run.
"""
import
glob
,
re
,
os
,
os
.
path
,
shutil
,
string
,
sys
...
...
ios/cmake/Modules/Platform/iOS.cmake
View file @
57fc5e00
...
...
@@ -40,7 +40,7 @@ set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}")
# Hidden visibilty is required for cxx on iOS
set
(
CMAKE_C_FLAGS
""
)
set
(
CMAKE_CXX_FLAGS
"-headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden"
)
set
(
CMAKE_CXX_FLAGS
"-
stdlib=libc++ -
headerpad_max_install_names -fvisibility=hidden -fvisibility-inlines-hidden"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-DNDEBUG -O3 -fomit-frame-pointer -ffast-math"
)
...
...
ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake
View file @
57fc5e00
...
...
@@ -8,8 +8,8 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/ios/cma
# Force the compilers to gcc for iOS
include
(
CMakeForceCompiler
)
CMAKE_FORCE_C_COMPILER
(
gcc gcc
)
CMAKE_FORCE_CXX_COMPILER
(
g++ g++
)
#
CMAKE_FORCE_C_COMPILER (gcc gcc)
#
CMAKE_FORCE_CXX_COMPILER (g++ g++)
set
(
CMAKE_C_SIZEOF_DATA_PTR 4
)
set
(
CMAKE_C_HAS_ISYSROOT 1
)
...
...
ios/cmake/Toolchains/Toolchain-iPhoneSimulator_Xcode.cmake
View file @
57fc5e00
...
...
@@ -8,8 +8,8 @@ set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/ios/cma
# Force the compilers to gcc for iOS
include
(
CMakeForceCompiler
)
CMAKE_FORCE_C_COMPILER
(
gcc gcc
)
CMAKE_FORCE_CXX_COMPILER
(
g++ g++
)
#
CMAKE_FORCE_C_COMPILER (gcc gcc)
#
CMAKE_FORCE_CXX_COMPILER (g++ g++)
set
(
CMAKE_C_SIZEOF_DATA_PTR 4
)
set
(
CMAKE_C_HAS_ISYSROOT 1
)
...
...
modules/core/include/opencv2/core/operations.hpp
View file @
57fc5e00
...
...
@@ -56,7 +56,10 @@
#define CV_XADD(addr,delta) _InterlockedExchangeAdd(const_cast<void*>(reinterpret_cast<volatile void*>(addr)), delta)
#elif defined __GNUC__
#if __GNUC__*10 + __GNUC_MINOR__ >= 42
#if defined __clang__ && __clang_major__ >= 3 && defined __ATOMIC_SEQ_CST
#define CV_XADD(addr, delta) __c11_atomic_fetch_add((_Atomic(int)*)(addr), (delta), __ATOMIC_SEQ_CST)
#elif __GNUC__*10 + __GNUC_MINOR__ >= 42
#if !defined WIN32 && (defined __i486__ || defined __i586__ || \
defined __i686__ || defined __MMX__ || defined __SSE__ || defined __ppc__)
...
...
@@ -2460,18 +2463,10 @@ dot(const Vector<_Tp>& v1, const Vector<_Tp>& v2)
assert
(
v1
.
size
()
==
v2
.
size
());
_Tw
s
=
0
;
if
(
n
>
0
)
{
const
_Tp
*
ptr1
=
&
v1
[
0
],
*
ptr2
=
&
v2
[
0
];
#if CV_ENABLE_UNROLLED
const
size_t
n2
=
(
n
>
4
)
?
n
:
4
;
for
(;
i
<=
n2
-
4
;
i
+=
4
)
s
+=
(
_Tw
)
ptr1
[
i
]
*
ptr2
[
i
]
+
(
_Tw
)
ptr1
[
i
+
1
]
*
ptr2
[
i
+
1
]
+
(
_Tw
)
ptr1
[
i
+
2
]
*
ptr2
[
i
+
2
]
+
(
_Tw
)
ptr1
[
i
+
3
]
*
ptr2
[
i
+
3
];
#endif
for
(
;
i
<
n
;
i
++
)
s
+=
(
_Tw
)
ptr1
[
i
]
*
ptr2
[
i
];
}
const
_Tp
*
ptr1
=
&
v1
[
0
],
*
ptr2
=
&
v2
[
0
];
for
(
;
i
<
n
;
i
++
)
s
+=
(
_Tw
)
ptr1
[
i
]
*
ptr2
[
i
];
return
s
;
}
...
...
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