Blender V2.61 - r43446
Defines | Functions

kernel_compat_opencl.h File Reference

#include "util_types.h"

Go to the source code of this file.

Defines

#define __KERNEL_GPU__
#define __KERNEL_OPENCL__
#define CCL_NAMESPACE_BEGIN
#define CCL_NAMESPACE_END
#define __noinline
#define __device
#define __device_inline   __device
#define __device_noinline   __device __noinline
#define kernel_assert(cond)
#define make_float2(x, y)   ((float2)(x, y))
#define make_float3(x, y, z)   ((float3)(x, y, z))
#define make_float4(x, y, z, w)   ((float4)(x, y, z, w))
#define make_int2(x, y)   ((int2)(x, y))
#define make_int3(x, y, z)   ((int3)(x, y, z))
#define make_int4(x, y, z, w)   ((int4)(x, y, z, w))
#define __uint_as_float(x)   as_float(x)
#define __float_as_uint(x)   as_uint(x)
#define __int_as_float(x)   as_float(x)
#define __float_as_int(x)   as_int(x)
#define sqrtf(x)   sqrt(((float)x))
#define cosf(x)   cos(((float)x))
#define sinf(x)   sin(((float)x))
#define powf(x, y)   pow(((float)x), ((float)y))
#define fabsf(x)   fabs(((float)x))
#define copysignf(x, y)   copysign(((float)x), ((float)y))
#define cosf(x)   cos(((float)x))
#define asinf(x)   asin(((float)x))
#define acosf(x)   acos(((float)x))
#define atanf(x)   atan(((float)x))
#define tanf(x)   tan(((float)x))
#define logf(x)   log(((float)x))
#define floorf(x)   floor(((float)x))
#define expf(x)   exp(((float)x))
#define hypotf(x, y)   hypot(((float)x), ((float)y))
#define atan2f(x, y)   atan2(((float)x), ((float)y))
#define fmaxf(x, y)   fmax(((float)x), ((float)y))
#define fminf(x, y)   fmin(((float)x), ((float)y))
#define kernel_data   (*kg->data)
#define kernel_tex_interp(t, x, size)   kernel_tex_interp_(kg->t, size, x)
#define kernel_tex_fetch(t, index)   kg->t[index]
#define NULL   0

Functions

__device float kernel_tex_interp_ (__global float *data, int width, float x)

Define Documentation

#define __device

Definition at line 40 of file kernel_compat_opencl.h.

#define __device_inline   __device

Definition at line 41 of file kernel_compat_opencl.h.

#define __device_noinline   __device __noinline

Definition at line 42 of file kernel_compat_opencl.h.

#define __float_as_int (   x)    as_int(x)

Definition at line 94 of file kernel_compat_opencl.h.

#define __float_as_uint (   x)    as_uint(x)

Definition at line 92 of file kernel_compat_opencl.h.

#define __int_as_float (   x)    as_float(x)

Definition at line 93 of file kernel_compat_opencl.h.

#define __KERNEL_GPU__

Definition at line 22 of file kernel_compat_opencl.h.

#define __KERNEL_OPENCL__

Definition at line 23 of file kernel_compat_opencl.h.

#define __noinline

Definition at line 36 of file kernel_compat_opencl.h.

#define __uint_as_float (   x)    as_float(x)

Definition at line 91 of file kernel_compat_opencl.h.

#define acosf (   x)    acos(((float)x))

Definition at line 103 of file kernel_compat_opencl.h.

#define asinf (   x)    asin(((float)x))

Definition at line 102 of file kernel_compat_opencl.h.

#define atan2f (   x,
 
)    atan2(((float)x), ((float)y))

Definition at line 110 of file kernel_compat_opencl.h.

#define atanf (   x)    atan(((float)x))

Definition at line 104 of file kernel_compat_opencl.h.

#define CCL_NAMESPACE_BEGIN

Definition at line 26 of file kernel_compat_opencl.h.

#define CCL_NAMESPACE_END

Definition at line 27 of file kernel_compat_opencl.h.

#define copysignf (   x,
 
)    copysign(((float)x), ((float)y))
#define cosf (   x)    cos(((float)x))

Definition at line 101 of file kernel_compat_opencl.h.

#define cosf (   x)    cos(((float)x))

Definition at line 101 of file kernel_compat_opencl.h.

#define expf (   x)    exp(((float)x))

Definition at line 108 of file kernel_compat_opencl.h.

#define fabsf (   x)    fabs(((float)x))

Definition at line 99 of file kernel_compat_opencl.h.

#define floorf (   x)    floor(((float)x))

Definition at line 107 of file kernel_compat_opencl.h.

#define fmaxf (   x,
 
)    fmax(((float)x), ((float)y))
#define fminf (   x,
 
)    fmin(((float)x), ((float)y))

Definition at line 112 of file kernel_compat_opencl.h.

Referenced by svm_gradient(), and svm_math().

#define hypotf (   x,
 
)    hypot(((float)x), ((float)y))

Definition at line 109 of file kernel_compat_opencl.h.

#define kernel_assert (   cond)

Definition at line 45 of file kernel_compat_opencl.h.

#define kernel_data   (*kg->data)

Definition at line 115 of file kernel_compat_opencl.h.

#define kernel_tex_fetch (   t,
  index 
)    kg->t[index]

Definition at line 117 of file kernel_compat_opencl.h.

#define kernel_tex_interp (   t,
  x,
  size 
)    kernel_tex_interp_(kg->t, size, x)

Definition at line 116 of file kernel_compat_opencl.h.

#define logf (   x)    log(((float)x))

Definition at line 106 of file kernel_compat_opencl.h.

#define make_float2 (   x,
 
)    ((float2)(x, y))

Definition at line 79 of file kernel_compat_opencl.h.

#define make_float3 (   x,
  y,
 
)    ((float3)(x, y, z))

Definition at line 83 of file kernel_compat_opencl.h.

#define make_float4 (   x,
  y,
  z,
 
)    ((float4)(x, y, z, w))

Definition at line 85 of file kernel_compat_opencl.h.

#define make_int2 (   x,
 
)    ((int2)(x, y))

Definition at line 86 of file kernel_compat_opencl.h.

#define make_int3 (   x,
  y,
 
)    ((int3)(x, y, z))

Definition at line 87 of file kernel_compat_opencl.h.

#define make_int4 (   x,
  y,
  z,
 
)    ((int4)(x, y, z, w))

Definition at line 88 of file kernel_compat_opencl.h.

#define NULL   0

Definition at line 120 of file kernel_compat_opencl.h.

#define powf (   x,
 
)    pow(((float)x), ((float)y))

Definition at line 98 of file kernel_compat_opencl.h.

#define sinf (   x)    sin(((float)x))

Definition at line 97 of file kernel_compat_opencl.h.

#define sqrtf (   x)    sqrt(((float)x))

Definition at line 95 of file kernel_compat_opencl.h.

#define tanf (   x)    tan(((float)x))

Definition at line 105 of file kernel_compat_opencl.h.


Function Documentation

__device float kernel_tex_interp_ ( __global float *  data,
int  width,
float  x 
)

Definition at line 48 of file kernel_compat_opencl.h.

References clamp, and min.