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
eac4042e
Commit
eac4042e
authored
Sep 08, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3195 from akarsakov:ocl_rm_mul24
parents
618c75fe
c942c653
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
meanstddev.cl
modules/core/src/opencl/meanstddev.cl
+1
-1
reduce.cl
modules/core/src/opencl/reduce.cl
+2
-2
No files found.
modules/core/src/opencl/meanstddev.cl
View file @
eac4042e
...
...
@@ -68,7 +68,7 @@ __kernel void meanStdDev(__global const uchar * srcptr, int src_step, int src_of
#
endif
{
#
ifdef
HAVE_SRC_CONT
int
src_index
=
mul24
(
id,
srcTSIZE
)
;
int
src_index
=
id
*
srcTSIZE
;
#
else
int
src_index
=
mad24
(
id
/
cols,
src_step,
mul24
(
id
%
cols,
srcTSIZE
))
;
#
endif
...
...
modules/core/src/opencl/reduce.cl
View file @
eac4042e
...
...
@@ -578,13 +578,13 @@ __kernel void reduce(__global const uchar * srcptr, int src_step, int src_offset
for
(
int
grain
=
groupnum
*
WGS
*
kercn
; id < total; id += grain)
{
#
ifdef
HAVE_SRC_CONT
int
src_index
=
mul24
(
id,
srcTSIZE
)
;
int
src_index
=
id
*
srcTSIZE
;
#
else
int
src_index
=
mad24
(
id
/
cols,
src_step,
mul24
(
id
%
cols,
srcTSIZE
))
;
#
endif
#
ifdef
HAVE_SRC2
#
ifdef
HAVE_SRC2_CONT
int
src2_index
=
mul24
(
id,
srcTSIZE
)
;
int
src2_index
=
id
*
srcTSIZE
;
#
else
int
src2_index
=
mad24
(
id
/
cols,
src2_step,
mul24
(
id
%
cols,
srcTSIZE
))
;
#
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