21 return (
float)n * (1.0f / 4294967808.0f);
27 return (
float)n * (1.0f / (
float)0xFFFFFFFFu);
34#define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k))))
59#define final(a, b, c) \
81 a =
b = c = 0xdeadbeef + (1 << 2) + 13;
92 a =
b = c = 0xdeadbeef + (2 << 2) + 13;
104 a =
b = c = 0xdeadbeef + (3 << 2) + 13;
117 a =
b = c = 0xdeadbeef + (4 << 2) + 13;
246# define rot(x, k) (((x) << (k)) | (srl(x, 32 - (k))))
248# define mix(a, b, c) \
270# define final(a, b, c) \
291 a =
b = c =
make_int4(0xdeadbeef + (1 << 2) + 13);
302 a =
b = c =
make_int4(0xdeadbeef + (2 << 2) + 13);
314 a =
b = c =
make_int4(0xdeadbeef + (3 << 2) + 13);
327 a =
b = c =
make_int4(0xdeadbeef + (4 << 2) + 13);
340# if defined(__KERNEL_AVX2__)
344 a =
b = c =
make_vint8(0xdeadbeef + (1 << 2) + 13);
355 a =
b = c =
make_vint8(0xdeadbeef + (2 << 2) + 13);
367 a =
b = c =
make_vint8(0xdeadbeef + (3 << 2) + 13);
380 a =
b = c =
make_vint8(0xdeadbeef + (4 << 2) + 13);
417 return i ^ 0xe6fe3beb;
495 i ^= (i &
mask) >> 4;
499 i ^= (i &
mask) >> 1;
502 i ^= (i &
mask) >> 11;
504 i ^= (i &
mask) >> 2;
506 i ^= (i &
mask) >> 2;
510 }
while (i >= length);
522 const uint qx = 1103515245U * ((x >> 1U) ^ (y));
523 const uint qy = 1103515245U * ((y >> 1U) ^ (x));
524 const uint n = 1103515245U * ((qx) ^ (qy >> 3U));
531#ifndef __KERNEL_GPU__
536 while ((c = *
str++)) {
static unsigned long seed
SIMD_FORCE_INLINE btScalar length() const
Return the length of the vector.
local_group_size(16, 16) .push_constant(Type b
#define ccl_device_forceinline
#define ccl_device_inline
#define CCL_NAMESPACE_END
draw_view in_light_buf[] float
static uint hash_string(const char *str)
ccl_device_inline uint hash_uint2(uint kx, uint ky)
ccl_device_inline float hash_uint_to_float(uint kx)
ccl_device_inline float3 hash_float_to_float3(float k)
ccl_device_inline float hash_hp_seeded_float(uint i, uint seed)
ccl_device_inline float hash_wang_seeded_float(uint i, uint seed)
ccl_device_inline float3 hash_float4_to_float3(float4 k)
CCL_NAMESPACE_BEGIN ccl_device_forceinline float uint_to_float_excl(uint n)
ccl_device_inline float hash_float_to_float(float k)
ccl_device_forceinline float uint_to_float_incl(uint n)
ccl_device_inline uint hash_wang_seeded_uint(uint i, uint seed)
ccl_device_inline float3 hash_float2_to_float3(float2 k)
ccl_device_inline float2 hash_float2_to_float2(float2 k)
ccl_device_inline float hash_float2_to_float(float2 k)
ccl_device_inline float hash_hp_float(uint i)
ccl_device_inline uint hash_uint3(uint kx, uint ky, uint kz)
ccl_device_inline float hash_float4_to_float(float4 k)
ccl_device_inline uint hash_uint4(uint kx, uint ky, uint kz, uint kw)
ccl_device_inline float hash_uint4_to_float(uint kx, uint ky, uint kz, uint kw)
ccl_device_inline uint hash_iqnt2d(const uint x, const uint y)
ccl_device_inline float2 hash_float_to_float2(float k)
ccl_device_inline uint hash_shuffle_uint(uint i, uint length, uint seed)
ccl_device_inline float4 hash_float4_to_float4(float4 k)
ccl_device_inline float2 hash_float3_to_float2(float3 k)
ccl_device_inline uint hash_hp_uint(uint i)
ccl_device_inline uint hash_uint(uint kx)
ccl_device_inline float hash_uint2_to_float(uint kx, uint ky)
ccl_device_inline float hash_float3_to_float(float3 k)
ccl_device_inline float3 hash_float3_to_float3(float3 k)
ccl_device_inline float2 hash_float4_to_float2(float4 k)
ccl_device_inline float hash_uint3_to_float(uint kx, uint ky, uint kz)
ccl_device_inline uint hash_hp_seeded_uint(uint i, uint seed)
ccl_device_inline float4 mask(const int4 mask, const float4 a)
ccl_device_inline vint8 make_vint8(int a, int b, int c, int d, int e, int f, int g, int h)
ccl_device_inline uint count_leading_zeros(uint x)