mdcore  0.1.5
Typedefs | Functions
/home/pedro/work/mdcore/src/cutil_math.h File Reference
#include "cuda_runtime.h"
#include <math.h>

Go to the source code of this file.

Typedefs

typedef unsigned int uint
typedef unsigned short ushort

Functions

float fminf (float a, float b)
float fmaxf (float a, float b)
int max (int a, int b)
int min (int a, int b)
float rsqrtf (float x)
__host__ __device__ float2 make_float2 (float s)
__host__ __device__ float2 make_float2 (float3 a)
__host__ __device__ float2 make_float2 (int2 a)
__host__ __device__ float2 make_float2 (uint2 a)
__host__ __device__ int2 make_int2 (int s)
__host__ __device__ int2 make_int2 (int3 a)
__host__ __device__ int2 make_int2 (uint2 a)
__host__ __device__ int2 make_int2 (float2 a)
__host__ __device__ uint2 make_uint2 (uint s)
__host__ __device__ uint2 make_uint2 (uint3 a)
__host__ __device__ uint2 make_uint2 (int2 a)
__host__ __device__ float3 make_float3 (float s)
__host__ __device__ float3 make_float3 (float2 a)
__host__ __device__ float3 make_float3 (float2 a, float s)
__host__ __device__ float3 make_float3 (float4 a)
__host__ __device__ float3 make_float3 (int3 a)
__host__ __device__ float3 make_float3 (uint3 a)
__host__ __device__ int3 make_int3 (int s)
__host__ __device__ int3 make_int3 (int2 a)
__host__ __device__ int3 make_int3 (int2 a, int s)
__host__ __device__ int3 make_int3 (uint3 a)
__host__ __device__ int3 make_int3 (float3 a)
__host__ __device__ uint3 make_uint3 (uint s)
__host__ __device__ uint3 make_uint3 (uint2 a)
__host__ __device__ uint3 make_uint3 (uint2 a, uint s)
__host__ __device__ uint3 make_uint3 (uint4 a)
__host__ __device__ uint3 make_uint3 (int3 a)
__host__ __device__ float4 make_float4 (float s)
__host__ __device__ float4 make_float4 (float3 a)
__host__ __device__ float4 make_float4 (float3 a, float w)
__host__ __device__ float4 make_float4 (int4 a)
__host__ __device__ float4 make_float4 (uint4 a)
__host__ __device__ int4 make_int4 (int s)
__host__ __device__ int4 make_int4 (int3 a)
__host__ __device__ int4 make_int4 (int3 a, int w)
__host__ __device__ int4 make_int4 (uint4 a)
__host__ __device__ int4 make_int4 (float4 a)
__host__ __device__ uint4 make_uint4 (uint s)
__host__ __device__ uint4 make_uint4 (uint3 a)
__host__ __device__ uint4 make_uint4 (uint3 a, uint w)
__host__ __device__ uint4 make_uint4 (int4 a)
__host__ __device__ float2 operator- (float2 &a)
__host__ __device__ int2 operator- (int2 &a)
__host__ __device__ float3 operator- (float3 &a)
__host__ __device__ int3 operator- (int3 &a)
__host__ __device__ float4 operator- (float4 &a)
__host__ __device__ int4 operator- (int4 &a)
__host__ __device__ float2 operator+ (float2 a, float2 b)
__host__ __device__ void operator+= (float2 &a, float2 b)
__host__ __device__ float2 operator+ (float2 a, float b)
__host__ __device__ float2 operator+ (float b, float2 a)
__host__ __device__ void operator+= (float2 &a, float b)
__host__ __device__ int2 operator+ (int2 a, int2 b)
__host__ __device__ void operator+= (int2 &a, int2 b)
__host__ __device__ int2 operator+ (int2 a, int b)
__host__ __device__ int2 operator+ (int b, int2 a)
__host__ __device__ void operator+= (int2 &a, int b)
__host__ __device__ uint2 operator+ (uint2 a, uint2 b)
__host__ __device__ void operator+= (uint2 &a, uint2 b)
__host__ __device__ uint2 operator+ (uint2 a, uint b)
__host__ __device__ uint2 operator+ (uint b, uint2 a)
__host__ __device__ void operator+= (uint2 &a, uint b)
__host__ __device__ float3 operator+ (float3 a, float3 b)
__host__ __device__ void operator+= (float3 &a, float3 b)
__host__ __device__ float3 operator+ (float3 a, float b)
__host__ __device__ void operator+= (float3 &a, float b)
__host__ __device__ int3 operator+ (int3 a, int3 b)
__host__ __device__ void operator+= (int3 &a, int3 b)
__host__ __device__ int3 operator+ (int3 a, int b)
__host__ __device__ void operator+= (int3 &a, int b)
__host__ __device__ uint3 operator+ (uint3 a, uint3 b)
__host__ __device__ void operator+= (uint3 &a, uint3 b)
__host__ __device__ uint3 operator+ (uint3 a, uint b)
__host__ __device__ void operator+= (uint3 &a, uint b)
__host__ __device__ int3 operator+ (int b, int3 a)
__host__ __device__ uint3 operator+ (uint b, uint3 a)
__host__ __device__ float3 operator+ (float b, float3 a)
__host__ __device__ float4 operator+ (float4 a, float4 b)
__host__ __device__ void operator+= (float4 &a, float4 b)
__host__ __device__ float4 operator+ (float4 a, float b)
__host__ __device__ float4 operator+ (float b, float4 a)
__host__ __device__ void operator+= (float4 &a, float b)
__host__ __device__ int4 operator+ (int4 a, int4 b)
__host__ __device__ void operator+= (int4 &a, int4 b)
__host__ __device__ int4 operator+ (int4 a, int b)
__host__ __device__ int4 operator+ (int b, int4 a)
__host__ __device__ void operator+= (int4 &a, int b)
__host__ __device__ uint4 operator+ (uint4 a, uint4 b)
__host__ __device__ void operator+= (uint4 &a, uint4 b)
__host__ __device__ uint4 operator+ (uint4 a, uint b)
__host__ __device__ uint4 operator+ (uint b, uint4 a)
__host__ __device__ void operator+= (uint4 &a, uint b)
__host__ __device__ float2 operator- (float2 a, float2 b)
__host__ __device__ void operator-= (float2 &a, float2 b)
__host__ __device__ float2 operator- (float2 a, float b)
__host__ __device__ float2 operator- (float b, float2 a)
__host__ __device__ void operator-= (float2 &a, float b)
__host__ __device__ int2 operator- (int2 a, int2 b)
__host__ __device__ void operator-= (int2 &a, int2 b)
__host__ __device__ int2 operator- (int2 a, int b)
__host__ __device__ int2 operator- (int b, int2 a)
__host__ __device__ void operator-= (int2 &a, int b)
__host__ __device__ uint2 operator- (uint2 a, uint2 b)
__host__ __device__ void operator-= (uint2 &a, uint2 b)
__host__ __device__ uint2 operator- (uint2 a, uint b)
__host__ __device__ uint2 operator- (uint b, uint2 a)
__host__ __device__ void operator-= (uint2 &a, uint b)
__host__ __device__ float3 operator- (float3 a, float3 b)
__host__ __device__ void operator-= (float3 &a, float3 b)
__host__ __device__ float3 operator- (float3 a, float b)
__host__ __device__ float3 operator- (float b, float3 a)
__host__ __device__ void operator-= (float3 &a, float b)
__host__ __device__ int3 operator- (int3 a, int3 b)
__host__ __device__ void operator-= (int3 &a, int3 b)
__host__ __device__ int3 operator- (int3 a, int b)
__host__ __device__ int3 operator- (int b, int3 a)
__host__ __device__ void operator-= (int3 &a, int b)
__host__ __device__ uint3 operator- (uint3 a, uint3 b)
__host__ __device__ void operator-= (uint3 &a, uint3 b)
__host__ __device__ uint3 operator- (uint3 a, uint b)
__host__ __device__ uint3 operator- (uint b, uint3 a)
__host__ __device__ void operator-= (uint3 &a, uint b)
__host__ __device__ float4 operator- (float4 a, float4 b)
__host__ __device__ void operator-= (float4 &a, float4 b)
__host__ __device__ float4 operator- (float4 a, float b)
__host__ __device__ void operator-= (float4 &a, float b)
__host__ __device__ int4 operator- (int4 a, int4 b)
__host__ __device__ void operator-= (int4 &a, int4 b)
__host__ __device__ int4 operator- (int4 a, int b)
__host__ __device__ int4 operator- (int b, int4 a)
__host__ __device__ void operator-= (int4 &a, int b)
__host__ __device__ uint4 operator- (uint4 a, uint4 b)
__host__ __device__ void operator-= (uint4 &a, uint4 b)
__host__ __device__ uint4 operator- (uint4 a, uint b)
__host__ __device__ uint4 operator- (uint b, uint4 a)
__host__ __device__ void operator-= (uint4 &a, uint b)
__host__ __device__ float2 operator* (float2 a, float2 b)
__host__ __device__ void operator*= (float2 &a, float2 b)
__host__ __device__ float2 operator* (float2 a, float b)
__host__ __device__ float2 operator* (float b, float2 a)
__host__ __device__ void operator*= (float2 &a, float b)
__host__ __device__ int2 operator* (int2 a, int2 b)
__host__ __device__ void operator*= (int2 &a, int2 b)
__host__ __device__ int2 operator* (int2 a, int b)
__host__ __device__ int2 operator* (int b, int2 a)
__host__ __device__ void operator*= (int2 &a, int b)
__host__ __device__ uint2 operator* (uint2 a, uint2 b)
__host__ __device__ void operator*= (uint2 &a, uint2 b)
__host__ __device__ uint2 operator* (uint2 a, uint b)
__host__ __device__ uint2 operator* (uint b, uint2 a)
__host__ __device__ void operator*= (uint2 &a, uint b)
__host__ __device__ float3 operator* (float3 a, float3 b)
__host__ __device__ void operator*= (float3 &a, float3 b)
__host__ __device__ float3 operator* (float3 a, float b)
__host__ __device__ float3 operator* (float b, float3 a)
__host__ __device__ void operator*= (float3 &a, float b)
__host__ __device__ int3 operator* (int3 a, int3 b)
__host__ __device__ void operator*= (int3 &a, int3 b)
__host__ __device__ int3 operator* (int3 a, int b)
__host__ __device__ int3 operator* (int b, int3 a)
__host__ __device__ void operator*= (int3 &a, int b)
__host__ __device__ uint3 operator* (uint3 a, uint3 b)
__host__ __device__ void operator*= (uint3 &a, uint3 b)
__host__ __device__ uint3 operator* (uint3 a, uint b)
__host__ __device__ uint3 operator* (uint b, uint3 a)
__host__ __device__ void operator*= (uint3 &a, uint b)
__host__ __device__ float4 operator* (float4 a, float4 b)
__host__ __device__ void operator*= (float4 &a, float4 b)
__host__ __device__ float4 operator* (float4 a, float b)
__host__ __device__ float4 operator* (float b, float4 a)
__host__ __device__ void operator*= (float4 &a, float b)
__host__ __device__ int4 operator* (int4 a, int4 b)
__host__ __device__ void operator*= (int4 &a, int4 b)
__host__ __device__ int4 operator* (int4 a, int b)
__host__ __device__ int4 operator* (int b, int4 a)
__host__ __device__ void operator*= (int4 &a, int b)
__host__ __device__ uint4 operator* (uint4 a, uint4 b)
__host__ __device__ void operator*= (uint4 &a, uint4 b)
__host__ __device__ uint4 operator* (uint4 a, uint b)
__host__ __device__ uint4 operator* (uint b, uint4 a)
__host__ __device__ void operator*= (uint4 &a, uint b)
__host__ __device__ float2 operator/ (float2 a, float2 b)
__host__ __device__ void operator/= (float2 &a, float2 b)
__host__ __device__ float2 operator/ (float2 a, float b)
__host__ __device__ void operator/= (float2 &a, float b)
__host__ __device__ float2 operator/ (float b, float2 a)
__host__ __device__ float3 operator/ (float3 a, float3 b)
__host__ __device__ void operator/= (float3 &a, float3 b)
__host__ __device__ float3 operator/ (float3 a, float b)
__host__ __device__ void operator/= (float3 &a, float b)
__host__ __device__ float3 operator/ (float b, float3 a)
__host__ __device__ float4 operator/ (float4 a, float4 b)
__host__ __device__ void operator/= (float4 &a, float4 b)
__host__ __device__ float4 operator/ (float4 a, float b)
__host__ __device__ void operator/= (float4 &a, float b)
__host__ __device__ float4 operator/ (float b, float4 a)
__host__ __device__ float2 fminf (float2 a, float2 b)
__host__ __device__ float3 fminf (float3 a, float3 b)
__host__ __device__ float4 fminf (float4 a, float4 b)
__host__ __device__ int2 min (int2 a, int2 b)
__host__ __device__ int3 min (int3 a, int3 b)
__host__ __device__ int4 min (int4 a, int4 b)
__host__ __device__ uint2 min (uint2 a, uint2 b)
__host__ __device__ uint3 min (uint3 a, uint3 b)
__host__ __device__ uint4 min (uint4 a, uint4 b)
__host__ __device__ float2 fmaxf (float2 a, float2 b)
__host__ __device__ float3 fmaxf (float3 a, float3 b)
__host__ __device__ float4 fmaxf (float4 a, float4 b)
__host__ __device__ int2 max (int2 a, int2 b)
__host__ __device__ int3 max (int3 a, int3 b)
__host__ __device__ int4 max (int4 a, int4 b)
__host__ __device__ uint2 max (uint2 a, uint2 b)
__host__ __device__ uint3 max (uint3 a, uint3 b)
__host__ __device__ uint4 max (uint4 a, uint4 b)
__device__ __host__ float lerp (float a, float b, float t)
__device__ __host__ float2 lerp (float2 a, float2 b, float t)
__device__ __host__ float3 lerp (float3 a, float3 b, float t)
__device__ __host__ float4 lerp (float4 a, float4 b, float t)
__device__ __host__ float clamp (float f, float a, float b)
__device__ __host__ int clamp (int f, int a, int b)
__device__ __host__ uint clamp (uint f, uint a, uint b)
__device__ __host__ float2 clamp (float2 v, float a, float b)
__device__ __host__ float2 clamp (float2 v, float2 a, float2 b)
__device__ __host__ float3 clamp (float3 v, float a, float b)
__device__ __host__ float3 clamp (float3 v, float3 a, float3 b)
__device__ __host__ float4 clamp (float4 v, float a, float b)
__device__ __host__ float4 clamp (float4 v, float4 a, float4 b)
__device__ __host__ int2 clamp (int2 v, int a, int b)
__device__ __host__ int2 clamp (int2 v, int2 a, int2 b)
__device__ __host__ int3 clamp (int3 v, int a, int b)
__device__ __host__ int3 clamp (int3 v, int3 a, int3 b)
__device__ __host__ int4 clamp (int4 v, int a, int b)
__device__ __host__ int4 clamp (int4 v, int4 a, int4 b)
__device__ __host__ uint2 clamp (uint2 v, uint a, uint b)
__device__ __host__ uint2 clamp (uint2 v, uint2 a, uint2 b)
__device__ __host__ uint3 clamp (uint3 v, uint a, uint b)
__device__ __host__ uint3 clamp (uint3 v, uint3 a, uint3 b)
__device__ __host__ uint4 clamp (uint4 v, uint a, uint b)
__device__ __host__ uint4 clamp (uint4 v, uint4 a, uint4 b)
__host__ __device__ float dot (float2 a, float2 b)
__host__ __device__ float dot (float3 a, float3 b)
__host__ __device__ float dot (float4 a, float4 b)
__host__ __device__ int dot (int2 a, int2 b)
__host__ __device__ int dot (int3 a, int3 b)
__host__ __device__ int dot (int4 a, int4 b)
__host__ __device__ uint dot (uint2 a, uint2 b)
__host__ __device__ uint dot (uint3 a, uint3 b)
__host__ __device__ uint dot (uint4 a, uint4 b)
__host__ __device__ float length (float2 v)
__host__ __device__ float length (float3 v)
__host__ __device__ float length (float4 v)
__host__ __device__ float2 normalize (float2 v)
__host__ __device__ float3 normalize (float3 v)
__host__ __device__ float4 normalize (float4 v)
__host__ __device__ float2 floorf (float2 v)
__host__ __device__ float3 floorf (float3 v)
__host__ __device__ float4 floorf (float4 v)
__host__ __device__ float fracf (float v)
__host__ __device__ float2 fracf (float2 v)
__host__ __device__ float3 fracf (float3 v)
__host__ __device__ float4 fracf (float4 v)
__host__ __device__ float2 fmodf (float2 a, float2 b)
__host__ __device__ float3 fmodf (float3 a, float3 b)
__host__ __device__ float4 fmodf (float4 a, float4 b)
__host__ __device__ float2 fabs (float2 v)
__host__ __device__ float3 fabs (float3 v)
__host__ __device__ float4 fabs (float4 v)
__host__ __device__ int2 abs (int2 v)
__host__ __device__ int3 abs (int3 v)
__host__ __device__ int4 abs (int4 v)
__host__ __device__ float3 reflect (float3 i, float3 n)
__host__ __device__ float3 cross (float3 a, float3 b)
__device__ __host__ float smoothstep (float a, float b, float x)
__device__ __host__ float2 smoothstep (float2 a, float2 b, float2 x)
__device__ __host__ float3 smoothstep (float3 a, float3 b, float3 x)
__device__ __host__ float4 smoothstep (float4 a, float4 b, float4 x)

Typedef Documentation

typedef unsigned int uint
typedef unsigned short ushort

Function Documentation

__host__ __device__ int2 abs ( int2  v) [inline]
__host__ __device__ int3 abs ( int3  v) [inline]
__host__ __device__ int4 abs ( int4  v) [inline]
__device__ __host__ float clamp ( float  f,
float  a,
float  b 
) [inline]
__device__ __host__ int clamp ( int  f,
int  a,
int  b 
) [inline]
__device__ __host__ uint clamp ( uint  f,
uint  a,
uint  b 
) [inline]
__device__ __host__ float2 clamp ( float2  v,
float  a,
float  b 
) [inline]
__device__ __host__ float2 clamp ( float2  v,
float2  a,
float2  b 
) [inline]
__device__ __host__ float3 clamp ( float3  v,
float  a,
float  b 
) [inline]
__device__ __host__ float3 clamp ( float3  v,
float3  a,
float3  b 
) [inline]
__device__ __host__ float4 clamp ( float4  v,
float  a,
float  b 
) [inline]
__device__ __host__ float4 clamp ( float4  v,
float4  a,
float4  b 
) [inline]
__device__ __host__ int2 clamp ( int2  v,
int  a,
int  b 
) [inline]
__device__ __host__ int2 clamp ( int2  v,
int2  a,
int2  b 
) [inline]
__device__ __host__ int3 clamp ( int3  v,
int  a,
int  b 
) [inline]
__device__ __host__ int3 clamp ( int3  v,
int3  a,
int3  b 
) [inline]
__device__ __host__ int4 clamp ( int4  v,
int  a,
int  b 
) [inline]
__device__ __host__ int4 clamp ( int4  v,
int4  a,
int4  b 
) [inline]
__device__ __host__ uint2 clamp ( uint2  v,
uint  a,
uint  b 
) [inline]
__device__ __host__ uint2 clamp ( uint2  v,
uint2  a,
uint2  b 
) [inline]
__device__ __host__ uint3 clamp ( uint3  v,
uint  a,
uint  b 
) [inline]
__device__ __host__ uint3 clamp ( uint3  v,
uint3  a,
uint3  b 
) [inline]
__device__ __host__ uint4 clamp ( uint4  v,
uint  a,
uint  b 
) [inline]
__device__ __host__ uint4 clamp ( uint4  v,
uint4  a,
uint4  b 
) [inline]
__host__ __device__ float3 cross ( float3  a,
float3  b 
) [inline]
__host__ __device__ float dot ( float2  a,
float2  b 
) [inline]
__host__ __device__ float dot ( float3  a,
float3  b 
) [inline]
__host__ __device__ float dot ( float4  a,
float4  b 
) [inline]
__host__ __device__ int dot ( int2  a,
int2  b 
) [inline]
__host__ __device__ int dot ( int3  a,
int3  b 
) [inline]
__host__ __device__ int dot ( int4  a,
int4  b 
) [inline]
__host__ __device__ uint dot ( uint2  a,
uint2  b 
) [inline]
__host__ __device__ uint dot ( uint3  a,
uint3  b 
) [inline]
__host__ __device__ uint dot ( uint4  a,
uint4  b 
) [inline]
__host__ __device__ float2 fabs ( float2  v) [inline]
__host__ __device__ float3 fabs ( float3  v) [inline]
__host__ __device__ float4 fabs ( float4  v) [inline]
__host__ __device__ float2 floorf ( float2  v) [inline]
__host__ __device__ float3 floorf ( float3  v) [inline]
__host__ __device__ float4 floorf ( float4  v) [inline]
float fmaxf ( float  a,
float  b 
) [inline]
__host__ __device__ float2 fmaxf ( float2  a,
float2  b 
) [inline]
__host__ __device__ float3 fmaxf ( float3  a,
float3  b 
) [inline]
__host__ __device__ float4 fmaxf ( float4  a,
float4  b 
) [inline]
float fminf ( float  a,
float  b 
) [inline]
__host__ __device__ float2 fminf ( float2  a,
float2  b 
) [inline]
__host__ __device__ float3 fminf ( float3  a,
float3  b 
) [inline]
__host__ __device__ float4 fminf ( float4  a,
float4  b 
) [inline]
__host__ __device__ float2 fmodf ( float2  a,
float2  b 
) [inline]
__host__ __device__ float3 fmodf ( float3  a,
float3  b 
) [inline]
__host__ __device__ float4 fmodf ( float4  a,
float4  b 
) [inline]
__host__ __device__ float fracf ( float  v) [inline]
__host__ __device__ float2 fracf ( float2  v) [inline]
__host__ __device__ float3 fracf ( float3  v) [inline]
__host__ __device__ float4 fracf ( float4  v) [inline]
__host__ __device__ float length ( float2  v) [inline]
__host__ __device__ float length ( float3  v) [inline]
__host__ __device__ float length ( float4  v) [inline]
__device__ __host__ float lerp ( float  a,
float  b,
float  t 
) [inline]
__device__ __host__ float2 lerp ( float2  a,
float2  b,
float  t 
) [inline]
__device__ __host__ float3 lerp ( float3  a,
float3  b,
float  t 
) [inline]
__device__ __host__ float4 lerp ( float4  a,
float4  b,
float  t 
) [inline]
__host__ __device__ float2 make_float2 ( float  s) [inline]
__host__ __device__ float2 make_float2 ( float3  a) [inline]
__host__ __device__ float2 make_float2 ( int2  a) [inline]
__host__ __device__ float2 make_float2 ( uint2  a) [inline]
__host__ __device__ float3 make_float3 ( float  s) [inline]
__host__ __device__ float3 make_float3 ( float2  a) [inline]
__host__ __device__ float3 make_float3 ( float2  a,
float  s 
) [inline]
__host__ __device__ float3 make_float3 ( float4  a) [inline]
__host__ __device__ float3 make_float3 ( int3  a) [inline]
__host__ __device__ float3 make_float3 ( uint3  a) [inline]
__host__ __device__ float4 make_float4 ( float  s) [inline]
__host__ __device__ float4 make_float4 ( float3  a) [inline]
__host__ __device__ float4 make_float4 ( float3  a,
float  w 
) [inline]
__host__ __device__ float4 make_float4 ( int4  a) [inline]
__host__ __device__ float4 make_float4 ( uint4  a) [inline]
__host__ __device__ int2 make_int2 ( int  s) [inline]
__host__ __device__ int2 make_int2 ( int3  a) [inline]
__host__ __device__ int2 make_int2 ( uint2  a) [inline]
__host__ __device__ int2 make_int2 ( float2  a) [inline]
__host__ __device__ int3 make_int3 ( int  s) [inline]
__host__ __device__ int3 make_int3 ( int2  a) [inline]
__host__ __device__ int3 make_int3 ( int2  a,
int  s 
) [inline]
__host__ __device__ int3 make_int3 ( uint3  a) [inline]
__host__ __device__ int3 make_int3 ( float3  a) [inline]
__host__ __device__ int4 make_int4 ( int  s) [inline]
__host__ __device__ int4 make_int4 ( int3  a) [inline]
__host__ __device__ int4 make_int4 ( int3  a,
int  w 
) [inline]
__host__ __device__ int4 make_int4 ( uint4  a) [inline]
__host__ __device__ int4 make_int4 ( float4  a) [inline]
__host__ __device__ uint2 make_uint2 ( uint  s) [inline]
__host__ __device__ uint2 make_uint2 ( uint3  a) [inline]
__host__ __device__ uint2 make_uint2 ( int2  a) [inline]
__host__ __device__ uint3 make_uint3 ( uint  s) [inline]
__host__ __device__ uint3 make_uint3 ( uint2  a) [inline]
__host__ __device__ uint3 make_uint3 ( uint2  a,
uint  s 
) [inline]
__host__ __device__ uint3 make_uint3 ( uint4  a) [inline]
__host__ __device__ uint3 make_uint3 ( int3  a) [inline]
__host__ __device__ uint4 make_uint4 ( uint  s) [inline]
__host__ __device__ uint4 make_uint4 ( uint3  a) [inline]
__host__ __device__ uint4 make_uint4 ( uint3  a,
uint  w 
) [inline]
__host__ __device__ uint4 make_uint4 ( int4  a) [inline]
int max ( int  a,
int  b 
) [inline]
__host__ __device__ int2 max ( int2  a,
int2  b 
) [inline]
__host__ __device__ int3 max ( int3  a,
int3  b 
) [inline]
__host__ __device__ int4 max ( int4  a,
int4  b 
) [inline]
__host__ __device__ uint2 max ( uint2  a,
uint2  b 
) [inline]
__host__ __device__ uint3 max ( uint3  a,
uint3  b 
) [inline]
__host__ __device__ uint4 max ( uint4  a,
uint4  b 
) [inline]
int min ( int  a,
int  b 
) [inline]
__host__ __device__ int2 min ( int2  a,
int2  b 
) [inline]
__host__ __device__ int3 min ( int3  a,
int3  b 
) [inline]
__host__ __device__ int4 min ( int4  a,
int4  b 
) [inline]
__host__ __device__ uint2 min ( uint2  a,
uint2  b 
) [inline]
__host__ __device__ uint3 min ( uint3  a,
uint3  b 
) [inline]
__host__ __device__ uint4 min ( uint4  a,
uint4  b 
) [inline]
__host__ __device__ float2 normalize ( float2  v) [inline]
__host__ __device__ float3 normalize ( float3  v) [inline]
__host__ __device__ float4 normalize ( float4  v) [inline]
__host__ __device__ float2 operator* ( float2  a,
float2  b 
) [inline]
__host__ __device__ float2 operator* ( float2  a,
float  b 
) [inline]
__host__ __device__ float2 operator* ( float  b,
float2  a 
) [inline]
__host__ __device__ int2 operator* ( int2  a,
int2  b 
) [inline]
__host__ __device__ int2 operator* ( int2  a,
int  b 
) [inline]
__host__ __device__ int2 operator* ( int  b,
int2  a 
) [inline]
__host__ __device__ uint2 operator* ( uint2  a,
uint2  b 
) [inline]
__host__ __device__ uint2 operator* ( uint2  a,
uint  b 
) [inline]
__host__ __device__ uint2 operator* ( uint  b,
uint2  a 
) [inline]
__host__ __device__ float3 operator* ( float3  a,
float3  b 
) [inline]
__host__ __device__ float3 operator* ( float3  a,
float  b 
) [inline]
__host__ __device__ float3 operator* ( float  b,
float3  a 
) [inline]
__host__ __device__ int3 operator* ( int3  a,
int3  b 
) [inline]
__host__ __device__ int3 operator* ( int3  a,
int  b 
) [inline]
__host__ __device__ int3 operator* ( int  b,
int3  a 
) [inline]
__host__ __device__ uint3 operator* ( uint3  a,
uint3  b 
) [inline]
__host__ __device__ uint3 operator* ( uint3  a,
uint  b 
) [inline]
__host__ __device__ uint3 operator* ( uint  b,
uint3  a 
) [inline]
__host__ __device__ float4 operator* ( float4  a,
float4  b 
) [inline]
__host__ __device__ float4 operator* ( float4  a,
float  b 
) [inline]
__host__ __device__ float4 operator* ( float  b,
float4  a 
) [inline]
__host__ __device__ int4 operator* ( int4  a,
int4  b 
) [inline]
__host__ __device__ int4 operator* ( int4  a,
int  b 
) [inline]
__host__ __device__ int4 operator* ( int  b,
int4  a 
) [inline]
__host__ __device__ uint4 operator* ( uint4  a,
uint4  b 
) [inline]
__host__ __device__ uint4 operator* ( uint4  a,
uint  b 
) [inline]
__host__ __device__ uint4 operator* ( uint  b,
uint4  a 
) [inline]
__host__ __device__ void operator*= ( float2 &  a,
float2  b 
) [inline]
__host__ __device__ void operator*= ( float2 &  a,
float  b 
) [inline]
__host__ __device__ void operator*= ( int2 &  a,
int2  b 
) [inline]
__host__ __device__ void operator*= ( int2 &  a,
int  b 
) [inline]
__host__ __device__ void operator*= ( uint2 &  a,
uint2  b 
) [inline]
__host__ __device__ void operator*= ( uint2 &  a,
uint  b 
) [inline]
__host__ __device__ void operator*= ( float3 &  a,
float3  b 
) [inline]
__host__ __device__ void operator*= ( float3 &  a,
float  b 
) [inline]
__host__ __device__ void operator*= ( int3 &  a,
int3  b 
) [inline]
__host__ __device__ void operator*= ( int3 &  a,
int  b 
) [inline]
__host__ __device__ void operator*= ( uint3 &  a,
uint3  b 
) [inline]
__host__ __device__ void operator*= ( uint3 &  a,
uint  b 
) [inline]
__host__ __device__ void operator*= ( float4 &  a,
float4  b 
) [inline]
__host__ __device__ void operator*= ( float4 &  a,
float  b 
) [inline]
__host__ __device__ void operator*= ( int4 &  a,
int4  b 
) [inline]
__host__ __device__ void operator*= ( int4 &  a,
int  b 
) [inline]
__host__ __device__ void operator*= ( uint4 &  a,
uint4  b 
) [inline]
__host__ __device__ void operator*= ( uint4 &  a,
uint  b 
) [inline]
__host__ __device__ float2 operator+ ( float2  a,
float2  b 
) [inline]
__host__ __device__ float2 operator+ ( float2  a,
float  b 
) [inline]
__host__ __device__ float2 operator+ ( float  b,
float2  a 
) [inline]
__host__ __device__ int2 operator+ ( int2  a,
int2  b 
) [inline]
__host__ __device__ int2 operator+ ( int2  a,
int  b 
) [inline]
__host__ __device__ int2 operator+ ( int  b,
int2  a 
) [inline]
__host__ __device__ uint2 operator+ ( uint2  a,
uint2  b 
) [inline]
__host__ __device__ uint2 operator+ ( uint2  a,
uint  b 
) [inline]
__host__ __device__ uint2 operator+ ( uint  b,
uint2  a 
) [inline]
__host__ __device__ float3 operator+ ( float3  a,
float3  b 
) [inline]
__host__ __device__ float3 operator+ ( float3  a,
float  b 
) [inline]
__host__ __device__ int3 operator+ ( int3  a,
int3  b 
) [inline]
__host__ __device__ int3 operator+ ( int3  a,
int  b 
) [inline]
__host__ __device__ uint3 operator+ ( uint3  a,
uint3  b 
) [inline]
__host__ __device__ uint3 operator+ ( uint3  a,
uint  b 
) [inline]
__host__ __device__ int3 operator+ ( int  b,
int3  a 
) [inline]
__host__ __device__ uint3 operator+ ( uint  b,
uint3  a 
) [inline]
__host__ __device__ float3 operator+ ( float  b,
float3  a 
) [inline]
__host__ __device__ float4 operator+ ( float4  a,
float4  b 
) [inline]
__host__ __device__ float4 operator+ ( float4  a,
float  b 
) [inline]
__host__ __device__ float4 operator+ ( float  b,
float4  a 
) [inline]
__host__ __device__ int4 operator+ ( int4  a,
int4  b 
) [inline]
__host__ __device__ int4 operator+ ( int4  a,
int  b 
) [inline]
__host__ __device__ int4 operator+ ( int  b,
int4  a 
) [inline]
__host__ __device__ uint4 operator+ ( uint4  a,
uint4  b 
) [inline]
__host__ __device__ uint4 operator+ ( uint4  a,
uint  b 
) [inline]
__host__ __device__ uint4 operator+ ( uint  b,
uint4  a 
) [inline]
__host__ __device__ void operator+= ( float2 &  a,
float2  b 
) [inline]
__host__ __device__ void operator+= ( float2 &  a,
float  b 
) [inline]
__host__ __device__ void operator+= ( int2 &  a,
int2  b 
) [inline]
__host__ __device__ void operator+= ( int2 &  a,
int  b 
) [inline]
__host__ __device__ void operator+= ( uint2 &  a,
uint2  b 
) [inline]
__host__ __device__ void operator+= ( uint2 &  a,
uint  b 
) [inline]
__host__ __device__ void operator+= ( float3 &  a,
float3  b 
) [inline]
__host__ __device__ void operator+= ( float3 &  a,
float  b 
) [inline]
__host__ __device__ void operator+= ( int3 &  a,
int3  b 
) [inline]
__host__ __device__ void operator+= ( int3 &  a,
int  b 
) [inline]
__host__ __device__ void operator+= ( uint3 &  a,
uint3  b 
) [inline]
__host__ __device__ void operator+= ( uint3 &  a,
uint  b 
) [inline]
__host__ __device__ void operator+= ( float4 &  a,
float4  b 
) [inline]
__host__ __device__ void operator+= ( float4 &  a,
float  b 
) [inline]
__host__ __device__ void operator+= ( int4 &  a,
int4  b 
) [inline]
__host__ __device__ void operator+= ( int4 &  a,
int  b 
) [inline]
__host__ __device__ void operator+= ( uint4 &  a,
uint4  b 
) [inline]
__host__ __device__ void operator+= ( uint4 &  a,
uint  b 
) [inline]
__host__ __device__ float2 operator- ( float2 &  a) [inline]
__host__ __device__ int2 operator- ( int2 &  a) [inline]
__host__ __device__ float3 operator- ( float3 &  a) [inline]
__host__ __device__ int3 operator- ( int3 &  a) [inline]
__host__ __device__ float4 operator- ( float4 &  a) [inline]
__host__ __device__ int4 operator- ( int4 &  a) [inline]
__host__ __device__ float2 operator- ( float2  a,
float2  b 
) [inline]
__host__ __device__ float2 operator- ( float2  a,
float  b 
) [inline]
__host__ __device__ float2 operator- ( float  b,
float2  a 
) [inline]
__host__ __device__ int2 operator- ( int2  a,
int2  b 
) [inline]
__host__ __device__ int2 operator- ( int2  a,
int  b 
) [inline]
__host__ __device__ int2 operator- ( int  b,
int2  a 
) [inline]
__host__ __device__ uint2 operator- ( uint2  a,
uint2  b 
) [inline]
__host__ __device__ uint2 operator- ( uint2  a,
uint  b 
) [inline]
__host__ __device__ uint2 operator- ( uint  b,
uint2  a 
) [inline]
__host__ __device__ float3 operator- ( float3  a,
float3  b 
) [inline]
__host__ __device__ float3 operator- ( float3  a,
float  b 
) [inline]
__host__ __device__ float3 operator- ( float  b,
float3  a 
) [inline]
__host__ __device__ int3 operator- ( int3  a,
int3  b 
) [inline]
__host__ __device__ int3 operator- ( int3  a,
int  b 
) [inline]
__host__ __device__ int3 operator- ( int  b,
int3  a 
) [inline]
__host__ __device__ uint3 operator- ( uint3  a,
uint3  b 
) [inline]
__host__ __device__ uint3 operator- ( uint3  a,
uint  b 
) [inline]
__host__ __device__ uint3 operator- ( uint  b,
uint3  a 
) [inline]
__host__ __device__ float4 operator- ( float4  a,
float4  b 
) [inline]
__host__ __device__ float4 operator- ( float4  a,
float  b 
) [inline]
__host__ __device__ int4 operator- ( int4  a,
int4  b 
) [inline]
__host__ __device__ int4 operator- ( int4  a,
int  b 
) [inline]
__host__ __device__ int4 operator- ( int  b,
int4  a 
) [inline]
__host__ __device__ uint4 operator- ( uint4  a,
uint4  b 
) [inline]
__host__ __device__ uint4 operator- ( uint4  a,
uint  b 
) [inline]
__host__ __device__ uint4 operator- ( uint  b,
uint4  a 
) [inline]
__host__ __device__ void operator-= ( float2 &  a,
float2  b 
) [inline]
__host__ __device__ void operator-= ( float2 &  a,
float  b 
) [inline]
__host__ __device__ void operator-= ( int2 &  a,
int2  b 
) [inline]
__host__ __device__ void operator-= ( int2 &  a,
int  b 
) [inline]
__host__ __device__ void operator-= ( uint2 &  a,
uint2  b 
) [inline]
__host__ __device__ void operator-= ( uint2 &  a,
uint  b 
) [inline]
__host__ __device__ void operator-= ( float3 &  a,
float3  b 
) [inline]
__host__ __device__ void operator-= ( float3 &  a,
float  b 
) [inline]
__host__ __device__ void operator-= ( int3 &  a,
int3  b 
) [inline]
__host__ __device__ void operator-= ( int3 &  a,
int  b 
) [inline]
__host__ __device__ void operator-= ( uint3 &  a,
uint3  b 
) [inline]
__host__ __device__ void operator-= ( uint3 &  a,
uint  b 
) [inline]
__host__ __device__ void operator-= ( float4 &  a,
float4  b 
) [inline]
__host__ __device__ void operator-= ( float4 &  a,
float  b 
) [inline]
__host__ __device__ void operator-= ( int4 &  a,
int4  b 
) [inline]
__host__ __device__ void operator-= ( int4 &  a,
int  b 
) [inline]
__host__ __device__ void operator-= ( uint4 &  a,
uint4  b 
) [inline]
__host__ __device__ void operator-= ( uint4 &  a,
uint  b 
) [inline]
__host__ __device__ float2 operator/ ( float2  a,
float2  b 
) [inline]
__host__ __device__ float2 operator/ ( float2  a,
float  b 
) [inline]
__host__ __device__ float2 operator/ ( float  b,
float2  a 
) [inline]
__host__ __device__ float3 operator/ ( float3  a,
float3  b 
) [inline]
__host__ __device__ float3 operator/ ( float3  a,
float  b 
) [inline]
__host__ __device__ float3 operator/ ( float  b,
float3  a 
) [inline]
__host__ __device__ float4 operator/ ( float4  a,
float4  b 
) [inline]
__host__ __device__ float4 operator/ ( float4  a,
float  b 
) [inline]
__host__ __device__ float4 operator/ ( float  b,
float4  a 
) [inline]
__host__ __device__ void operator/= ( float2 &  a,
float2  b 
) [inline]
__host__ __device__ void operator/= ( float2 &  a,
float  b 
) [inline]
__host__ __device__ void operator/= ( float3 &  a,
float3  b 
) [inline]
__host__ __device__ void operator/= ( float3 &  a,
float  b 
) [inline]
__host__ __device__ void operator/= ( float4 &  a,
float4  b 
) [inline]
__host__ __device__ void operator/= ( float4 &  a,
float  b 
) [inline]
__host__ __device__ float3 reflect ( float3  i,
float3  n 
) [inline]
float rsqrtf ( float  x) [inline]
__device__ __host__ float smoothstep ( float  a,
float  b,
float  x 
) [inline]
__device__ __host__ float2 smoothstep ( float2  a,
float2  b,
float2  x 
) [inline]
__device__ __host__ float3 smoothstep ( float3  a,
float3  b,
float3  x 
) [inline]
__device__ __host__ float4 smoothstep ( float4  a,
float4  b,
float4  x 
) [inline]
 All Data Structures Files Functions Variables Typedefs Enumerator Defines