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
3107f79c
Commit
3107f79c
authored
Apr 08, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast to unsigned inside CV_XADD to quiet nvcc
parent
54511b41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+2
-2
No files found.
modules/core/include/opencv2/core/cvdef.h
View file @
3107f79c
...
...
@@ -443,9 +443,9 @@ CV_INLINE int cvIsInf( double value )
# else
# 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)
# define CV_XADD(addr, delta)
(int)__atomic_fetch_add((unsigned*)(addr), (unsigned)(delta)
, __ATOMIC_ACQ_REL)
# else
# define CV_XADD(addr, delta)
__sync_fetch_and_add(addr, delta
)
# define CV_XADD(addr, delta)
(int)__sync_fetch_and_add((unsigned*)(addr), (unsigned)(delta)
)
# endif
# endif
#elif (defined WIN32 || defined _WIN32 || defined WINCE) && (!defined RC_INVOKED)
...
...
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