Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
318574bc
authored
Dec 19, 2014
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_opencl_c: fixed cpplint warnings
parent
cbefe5bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c
+6
-7
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h
+0
-0
No files found.
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c
View file @
318574bc
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
// function pointer wrappers to hide runtime linking
// function pointer wrappers to hide runtime linking
#define DECLARECLFUNC(
rettype, name, params
) typedef CL_API_ENTRY rettype\
#define DECLARECLFUNC(
rettype, name, params
) typedef CL_API_ENTRY rettype\
(CL_API_CALL *name##Proc)params;\
(CL_API_CALL *name##Proc)params;\
name##Proc name##_Dynamic = 0;\
name##Proc name##_Dynamic = 0;\
\
\
...
@@ -189,8 +189,7 @@ DECLARECLFUNC(cl_sampler, clCreateSampler, (cl_context context,
...
@@ -189,8 +189,7 @@ DECLARECLFUNC(cl_sampler, clCreateSampler, (cl_context context,
filter_mode
,
errcode_ret
);
filter_mode
,
errcode_ret
);
}
}
DECLARECLFUNC
(
cl_int
,
clReleaseSampler
,
(
cl_sampler
sampler
))
DECLARECLFUNC
(
cl_int
,
clReleaseSampler
,
(
cl_sampler
sampler
))
{
{
return
clReleaseSampler_Dynamic
(
sampler
);
return
clReleaseSampler_Dynamic
(
sampler
);
}
}
...
@@ -240,16 +239,16 @@ DECLARECLFUNC(cl_mem, clCreateFromGLBuffer, (cl_context context,
...
@@ -240,16 +239,16 @@ DECLARECLFUNC(cl_mem, clCreateFromGLBuffer, (cl_context context,
#include <Windows.h>
#include <Windows.h>
#define CHECKEDIMPORT(name) name##_Dynamic = \
#define CHECKEDIMPORT(name) name##_Dynamic = \
(name##Proc)GetProcAddress(
opencl_dll_handle, #name
); \
(name##Proc)GetProcAddress(
opencl_dll_handle, #name
); \
if (
name##_Dynamic == 0
) return 0;
if (
name##_Dynamic == 0
) return 0;
#else
#else
#include <dlfcn.h>
#include <dlfcn.h>
#define CHECKEDIMPORT(name) name##_Dynamic = \
#define CHECKEDIMPORT(name) name##_Dynamic = \
(name##Proc)dlsym(
opencl_dll_handle, #name
); \
(name##Proc)dlsym(
opencl_dll_handle, #name
); \
if (
name##_Dynamic == 0
) return 0;
if (
name##_Dynamic == 0
) return 0;
#endif
#endif
...
...
mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h
View file @
318574bc
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