Bullet Collision Detection & Physics Library
Classes | Macros | Typedefs | Functions | Variables
cl_MiniCL_Defs.h File Reference
#include <float.h>
#include <math.h>
#include "LinearMath/btScalar.h"
#include "MiniCL/cl.h"
Include dependency graph for cl_MiniCL_Defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  float8
 
struct  float3
 
struct  float4
 
struct  int2
 
struct  uint2
 
struct  int4
 
struct  uint4
 

Macros

#define __kernel
 
#define __global
 
#define __local
 
#define get_global_id(a)   __guid_arg
 
#define get_local_id(a)   ((__guid_arg) % gMiniCLNumOutstandingTasks)
 
#define get_local_size(a)   (gMiniCLNumOutstandingTasks)
 
#define get_group_id(a)   ((__guid_arg) / gMiniCLNumOutstandingTasks)
 
#define CLK_LOCAL_MEM_FENCE   0x01
 
#define CLK_GLOBAL_MEM_FENCE   0x02
 
#define __constant
 
#define native_sqrt   sqrtf
 
#define native_sin   sinf
 
#define native_cos   cosf
 
#define native_powr   powf
 
#define GUID_ARG   ,int __guid_arg
 
#define GUID_ARG_VAL   ,__guid_arg
 
#define as_int(a)   (*((int*)&(a)))
 

Typedefs

typedef unsigned int uint
 

Functions

static void barrier (unsigned int a)
 
float select (float arg0, float arg1, bool select)
 
static float dot (const float3 &a, const float3 &b)
 
static float3 operator- (const float3 &a, const float3 &b)
 
static float3 operator* (const float &scalar, const float3 &b)
 
static float3 operator* (const float3 &a, const float &scalar)
 
static float3 operator* (const float3 &a, const float3 &b)
 
static float4 fabs (const float4 &a)
 
static float4 operator+ (const float4 &a, const float4 &b)
 
static float8 operator+ (const float8 &a, const float8 &b)
 
static float4 operator- (const float4 &a, const float4 &b)
 
static float8 operator- (const float8 &a, const float8 &b)
 
static float4 operator* (float a, const float4 &b)
 
static float4 operator/ (const float4 &b, float a)
 
static float dot (const float4 &a, const float4 &b)
 
static float length (const float4 &a)
 
static float4 normalize (const float4 &a)
 
static float4 cross (const float4 &a, const float4 &b)
 
static float max (float a, float b)
 
static float min (float a, float b)
 
static float fmax (float a, float b)
 
static float fmin (float a, float b)
 
static uint4 operator+ (const uint4 &a, const uint4 &b)
 
static uint4 operator- (const uint4 &a, const uint4 &b)
 

Variables

int gMiniCLNumOutstandingTasks
 

Macro Definition Documentation

#define __constant

Definition at line 68 of file cl_MiniCL_Defs.h.

#define __global

Definition at line 24 of file cl_MiniCL_Defs.h.

#define __kernel

Definition at line 23 of file cl_MiniCL_Defs.h.

#define __local

Definition at line 25 of file cl_MiniCL_Defs.h.

#define as_int (   a)    (*((int*)&(a)))

Definition at line 434 of file cl_MiniCL_Defs.h.

#define CLK_GLOBAL_MEM_FENCE   0x02

Definition at line 35 of file cl_MiniCL_Defs.h.

#define CLK_LOCAL_MEM_FENCE   0x01

Definition at line 34 of file cl_MiniCL_Defs.h.

#define get_global_id (   a)    __guid_arg

Definition at line 26 of file cl_MiniCL_Defs.h.

#define get_group_id (   a)    ((__guid_arg) / gMiniCLNumOutstandingTasks)

Definition at line 29 of file cl_MiniCL_Defs.h.

#define get_local_id (   a)    ((__guid_arg) % gMiniCLNumOutstandingTasks)

Definition at line 27 of file cl_MiniCL_Defs.h.

#define get_local_size (   a)    (gMiniCLNumOutstandingTasks)

Definition at line 28 of file cl_MiniCL_Defs.h.

#define GUID_ARG   ,int __guid_arg

Definition at line 430 of file cl_MiniCL_Defs.h.

#define GUID_ARG_VAL   ,__guid_arg

Definition at line 431 of file cl_MiniCL_Defs.h.

#define native_cos   cosf

Definition at line 427 of file cl_MiniCL_Defs.h.

#define native_powr   powf

Definition at line 428 of file cl_MiniCL_Defs.h.

#define native_sin   sinf

Definition at line 426 of file cl_MiniCL_Defs.h.

#define native_sqrt   sqrtf

Definition at line 425 of file cl_MiniCL_Defs.h.

Typedef Documentation

typedef unsigned int uint

Definition at line 385 of file cl_MiniCL_Defs.h.

Function Documentation

static void barrier ( unsigned int  a)
static

Definition at line 37 of file cl_MiniCL_Defs.h.

static float4 cross ( const float4 a,
const float4 b 
)
static

Definition at line 342 of file cl_MiniCL_Defs.h.

static float dot ( const float3 a,
const float3 b 
)
static

Definition at line 93 of file cl_MiniCL_Defs.h.

static float dot ( const float4 a,
const float4 b 
)
static

Definition at line 316 of file cl_MiniCL_Defs.h.

static float4 fabs ( const float4 a)
static

Definition at line 233 of file cl_MiniCL_Defs.h.

static float fmax ( float  a,
float  b 
)
static

Definition at line 363 of file cl_MiniCL_Defs.h.

static float fmin ( float  a,
float  b 
)
static

Definition at line 368 of file cl_MiniCL_Defs.h.

static float length ( const float4 a)
static

Definition at line 326 of file cl_MiniCL_Defs.h.

static float max ( float  a,
float  b 
)
static

Definition at line 352 of file cl_MiniCL_Defs.h.

static float min ( float  a,
float  b 
)
static

Definition at line 358 of file cl_MiniCL_Defs.h.

static float4 normalize ( const float4 a)
static

Definition at line 332 of file cl_MiniCL_Defs.h.

static float3 operator* ( const float &  scalar,
const float3 b 
)
static

Definition at line 111 of file cl_MiniCL_Defs.h.

static float3 operator* ( const float3 a,
const float &  scalar 
)
static

Definition at line 120 of file cl_MiniCL_Defs.h.

static float3 operator* ( const float3 a,
const float3 b 
)
static

Definition at line 130 of file cl_MiniCL_Defs.h.

static float4 operator* ( float  a,
const float4 b 
)
static

Definition at line 292 of file cl_MiniCL_Defs.h.

static float4 operator+ ( const float4 a,
const float4 b 
)
static

Definition at line 242 of file cl_MiniCL_Defs.h.

static float8 operator+ ( const float8 a,
const float8 b 
)
static

Definition at line 253 of file cl_MiniCL_Defs.h.

static uint4 operator+ ( const uint4 a,
const uint4 b 
)
static

Definition at line 406 of file cl_MiniCL_Defs.h.

static float3 operator- ( const float3 a,
const float3 b 
)
static

Definition at line 102 of file cl_MiniCL_Defs.h.

static float4 operator- ( const float4 a,
const float4 b 
)
static

Definition at line 268 of file cl_MiniCL_Defs.h.

static float8 operator- ( const float8 a,
const float8 b 
)
static

Definition at line 278 of file cl_MiniCL_Defs.h.

static uint4 operator- ( const uint4 a,
const uint4 b 
)
static

Definition at line 415 of file cl_MiniCL_Defs.h.

static float4 operator/ ( const float4 b,
float  a 
)
static

Definition at line 302 of file cl_MiniCL_Defs.h.

float select ( float  arg0,
float  arg1,
bool  select 
)

Definition at line 61 of file cl_MiniCL_Defs.h.

Variable Documentation

int gMiniCLNumOutstandingTasks

Definition at line 436 of file cl_MiniCL_Defs.h.