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
69c9fe35
Commit
69c9fe35
authored
Mar 26, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Mar 26, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #702 from taka-no-me:refactor_core_headers
parents
98585a96
aaf69c42
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+13
-5
cvstd.hpp
modules/core/include/opencv2/core/cvstd.hpp
+0
-0
glob.cpp
modules/core/src/glob.cpp
+3
-3
No files found.
modules/core/include/opencv2/core/cvdef.h
View file @
69c9fe35
...
...
@@ -112,15 +112,15 @@
#define CV_HARDWARE_MAX_FEATURE 255
#if defined __SSE2__ || defined _M_X64 || (defined _M_IX86_FP && _M_IX86_FP >= 2)
# include
"emmintrin.h"
# include
<emmintrin.h>
# define CV_SSE 1
# define CV_SSE2 1
# if defined __SSE3__ || (defined _MSC_VER && _MSC_VER >= 1500)
# include
"pmmintrin.h"
# include
<pmmintrin.h>
# define CV_SSE3 1
# endif
# if defined __SSSE3__ || (defined _MSC_VER && _MSC_VER >= 1500)
# include
"tmmintrin.h"
# include
<tmmintrin.h>
# define CV_SSSE3 1
# endif
# if defined __SSE4_1__ || (defined _MSC_VER && _MSC_VER >= 1500)
...
...
@@ -187,7 +187,13 @@
*/
#if !defined _MSC_VER && !defined __BORLANDC__
# include <stdint.h>
# if defined __cplusplus && __cplusplus >= 201103L
# include <cstdint>
# else
# include <stdint.h>
# endif
#else
typedef
unsigned
uint
;
#endif
typedef
signed
char
schar
;
...
...
@@ -318,6 +324,8 @@ typedef signed char schar;
#if defined __BORLANDC__
# include <fastmath.h>
#elif defined __cplusplus
# include <cmath>
#else
# include <math.h>
#endif
...
...
@@ -414,7 +422,7 @@ CV_INLINE int cvIsInf( double value )
# define CV_XADD(addr, delta) __atomic_fetch_add((_Atomic(int)*)(addr), delta, 4)
# endif
# else
# if
def __ATOMIC_ACQ_REL
# if
defined __ATOMIC_ACQ_REL && !defined __clang__
// version for gcc >= 4.7
# define CV_XADD(addr, delta) __atomic_fetch_add(addr, delta, __ATOMIC_ACQ_REL)
# else
...
...
modules/core/include/opencv2/core/cvstd.hpp
View file @
69c9fe35
This diff is collapsed.
Click to expand it.
modules/core/src/glob.cpp
View file @
69c9fe35
...
...
@@ -111,11 +111,11 @@ static bool isDir(const cv::String& path, DIR* dir)
return
(
attributes
!=
INVALID_FILE_ATTRIBUTES
)
&&
((
attributes
&
FILE_ATTRIBUTE_DIRECTORY
)
!=
0
);
#else
(
void
)
dir
;
struct
stat
stat_buf
;
stat
(
path
.
c_str
(),
&
stat_buf
);
if
(
0
!=
stat
(
path
.
c_str
(),
&
stat_buf
))
return
false
;
int
is_dir
=
S_ISDIR
(
stat_buf
.
st_mode
);
(
void
)
dir
;
return
is_dir
!=
0
;
#endif
}
...
...
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