4 #ifndef __UTIL_TYPES_H__
5 #define __UTIL_TYPES_H__
7 #if !defined(__KERNEL_METAL__)
13 #if !defined(__KERNEL_GPU__)
19 #ifndef __KERNEL_GPU__
40 #ifndef __KERNEL_GPU__
48 return (
offset + alignment - 1) & ~(alignment - 1);
53 return (
x +
y - 1) /
y;
58 return ((
x + multiple - 1) / multiple) * multiple;
63 return (
x / multiple) * multiple;
68 return (
x & (
x - 1)) == 0;
116 #ifndef __KERNEL_GPU__
120 # 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
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
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)