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
975d2e42
Commit
975d2e42
authored
Sep 14, 2016
by
matze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable built in counting trailing zeros function for Intel compiler and clang.
parent
a865876c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
contours.cpp
modules/imgproc/src/contours.cpp
+4
-4
No files found.
modules/imgproc/src/contours.cpp
View file @
975d2e42
...
...
@@ -59,10 +59,10 @@ inline unsigned int trailingZeros(unsigned int value) {
#endif
#elif defined(__GNUC__) || defined(__GNUG__)
return
__builtin_ctz
(
value
);
//
#elif defined(__ICC) || defined(__INTEL_COMPILER)
//
return _bit_scan_forward(value);
//
#elif defined(__clang__)
//
return llvm.cttz.i32(value, true);
#elif defined(__ICC) || defined(__INTEL_COMPILER)
return
_bit_scan_forward
(
value
);
#elif defined(__clang__)
return
llvm
.
cttz
.
i32
(
value
,
true
);
#else
static
const
int
MultiplyDeBruijnBitPosition
[
32
]
=
{
0
,
1
,
28
,
2
,
29
,
14
,
24
,
3
,
30
,
22
,
20
,
15
,
25
,
17
,
4
,
8
,
...
...
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