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
e4dee5b3
Commit
e4dee5b3
authored
Nov 11, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Nov 11, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1780 from ilya-lavrenov:ocl_m_pi
parents
0ac61240
5beb8872
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
arithm_phase.cl
modules/ocl/src/opencl/arithm_phase.cl
+7
-7
arithm_polarToCart.cl
modules/ocl/src/opencl/arithm_polarToCart.cl
+7
-3
No files found.
modules/ocl/src/opencl/arithm_phase.cl
View file @
e4dee5b3
...
...
@@ -45,16 +45,16 @@
//
#
if
defined
(
DOUBLE_SUPPORT
)
#
ifdef
cl_khr_fp64
#
pragma
OPENCL
EXTENSION
cl_khr_fp64:enable
#
elif
defined
(
cl_amd_fp64
)
#
ifdef
cl_amd_fp64
#
pragma
OPENCL
EXTENSION
cl_amd_fp64:enable
#
elif
defined
(
cl_khr_fp64
)
#
pragma
OPENCL
EXTENSION
cl_khr_fp64:enable
#
endif
#
define
CV_PI
3.1415926535897932384626433832795
#
define
CV_2PI
2*CV_PI
#
define
CV_PI
M_PI
#
define
CV_2PI
(
2
*
CV_PI
)
#
else
#
define
CV_PI
3.1415926535897932384626433832795f
#
define
CV_2PI
2*CV_PI
#
define
CV_PI
M_PI_F
#
define
CV_2PI
(
2
*
CV_PI
)
#
endif
/**************************************phase
inradians**************************************/
...
...
modules/ocl/src/opencl/arithm_polarToCart.cl
View file @
e4dee5b3
...
...
@@ -44,10 +44,14 @@
//M*/
#
ifdef
DOUBLE_SUPPORT
#
pragma
OPENCL
EXTENSION
cl_khr_fp64:enable
#
define
CV_PI
3.1415926535897932384626433832795
#
ifdef
cl_amd_fp64
#
pragma
OPENCL
EXTENSION
cl_amd_fp64:enable
#
elif
defined
(
cl_khr_fp64
)
#
pragma
OPENCL
EXTENSION
cl_khr_fp64:enable
#
endif
#
define
CV_PI
M_PI
#
else
#
define
CV_PI
3.1415926535897932384626433832795f
#
define
CV_PI
M_PI_F
#
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