22#define rot(x, k) (((x) << (k)) | ((x) >> (32 - (k))))
23#define final(a, b, c) \
45 a =
b = c = 0xdeadbeef + (3 << 2) + 13;
59 a =
b = c = 0xdeadbeef + (2 << 2) + 13;
73 unsigned int i = 0, c;
75 while ((c = *
str++)) {
103 size_t val = (size_t)
ptr;
106 const size_t hash = hash_a ^ (hash_b + 0x9e3779b9 + (hash_a << 6) + (hash_a >> 2));
107 *r = (
hash & 0xff0000) >> 16;
108 *g = (
hash & 0x00ff00) >> 8;
109 *
b =
hash & 0x0000ff;
BLI_INLINE float BLI_hash_int_01(unsigned int k)
BLI_INLINE unsigned int BLI_hash_int(unsigned int k)
BLI_INLINE void BLI_hash_pointer_to_color(const void *ptr, int *r, int *g, int *b)
BLI_INLINE float BLI_hash_int_2d_to_float(uint32_t kx, uint32_t ky)
BLI_INLINE unsigned int BLI_hash_string(const char *str)
BLI_INLINE float BLI_hash_int_3d_to_float(uint32_t kx, uint32_t ky, uint32_t kz)
BLI_INLINE unsigned int BLI_hash_int_2d(unsigned int kx, unsigned int ky)
BLI_INLINE unsigned int BLI_hash_int_3d(unsigned int kx, unsigned int ky, unsigned int kz)
local_group_size(16, 16) .push_constant(Type b
draw_view in_light_buf[] float