17 #ifndef __UTIL_TYPES_H__
18 #define __UTIL_TYPES_H__
20 #ifndef __KERNEL_OPENCL__
26 #if !defined(__KERNEL_GPU__)
32 #ifndef __KERNEL_GPU__
47 #ifndef __KERNEL_OPENCL__
55 #ifdef __KERNEL_OPENCL__
59 #ifndef __KERNEL_GPU__
67 return (offset + alignment - 1) & ~(alignment - 1);
72 return (
x +
y - 1) /
y;
77 return ((
x + multiple - 1) / multiple) * multiple;
82 return (
x / multiple) * multiple;
87 return (
x & (
x - 1)) == 0;
135 #ifndef __KERNEL_GPU__
139 # if defined(__KERNEL_AVX__) || defined(__KERNEL_AVX2__)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
#define ccl_device_inline
#define CCL_NAMESPACE_END
unsigned __int64 uint64_t
ccl_device_inline size_t align_up(size_t offset, size_t alignment)
ccl_device_inline size_t round_down(size_t x, size_t multiple)
ccl_device_inline size_t round_up(size_t x, size_t multiple)
CCL_NAMESPACE_BEGIN typedef unsigned char uchar
ccl_device_inline bool is_power_of_two(size_t x)
ccl_device_inline size_t divide_up(size_t x, size_t y)