|
Blender
V3.3
|
#include "BLI_utildefines.h"Go to the source code of this file.
Macros | |
| #define | rot(x, k) (((x) << (k)) | ((x) >> (32 - (k)))) |
| #define | final(a, b, c) |
Functions | |
| BLI_INLINE unsigned int | BLI_hash_int_3d (unsigned int kx, unsigned int ky, unsigned int kz) |
| BLI_INLINE unsigned int | BLI_hash_int_2d (unsigned int kx, unsigned int ky) |
| BLI_INLINE unsigned int | BLI_hash_string (const char *str) |
| BLI_INLINE float | BLI_hash_int_2d_to_float (uint32_t kx, uint32_t ky) |
| 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 (unsigned int k) |
| BLI_INLINE float | BLI_hash_int_01 (unsigned int k) |
| BLI_INLINE void | BLI_hash_pointer_to_color (const void *ptr, int *r, int *g, int *b) |
| #define final | ( | a, | |
| b, | |||
| c | |||
| ) |
Jenkins Lookup3 Hash Functions. Source: http://burtleburtle.net/bob/c/lookup3.c
Definition at line 20 of file BLI_hash.h.
| BLI_INLINE unsigned int BLI_hash_int | ( | unsigned int | k | ) |
Definition at line 89 of file BLI_hash.h.
References BLI_hash_int_2d().
Referenced by BKE_fluid_cache_new_name_for_current_session(), BLI_hash_int_01(), BLI_hash_pointer_to_color(), make_dupli(), and mesh_init_data().
| BLI_INLINE float BLI_hash_int_01 | ( | unsigned int | k | ) |
Definition at line 94 of file BLI_hash.h.
References BLI_hash_int(), and float().
Referenced by applyLength(), BKE_gpencil_stroke_set_random_color(), BKE_paint_face_set_overlay_color_get(), deformStroke(), do_paint_brush_task_cb_ex(), ED_gpencil_init_random_settings(), gpencil_apply_randomness(), gpencil_layer_random_color_get(), gpencil_sbuffer_vertex_color_random(), mask_init_task_cb(), noise_table(), SCULPT_do_paint_brush(), sculpt_face_sets_randomize_colors_exec(), and workbench_material_ubo_data().
| BLI_INLINE unsigned int BLI_hash_int_2d | ( | unsigned int | kx, |
| unsigned int | ky | ||
| ) |
Definition at line 53 of file BLI_hash.h.
References Freestyle::a, usdtokens::b(), and Freestyle::c.
Referenced by BKE_gpencil_stroke_set_random_color(), BLI_hash_int(), BLI_hash_int_2d_to_float(), drw_call_obinfos_init(), ED_gpencil_init_random_settings(), gpencil_apply_randomness(), gpencil_sbuffer_vertex_color_random(), make_dupli(), mesh_filter_task_cb(), noise_table(), and overlap_hash().
| BLI_INLINE float BLI_hash_int_2d_to_float | ( | uint32_t | kx, |
| uint32_t | ky | ||
| ) |
Definition at line 79 of file BLI_hash.h.
References BLI_hash_int_2d(), and float().
| BLI_INLINE unsigned int BLI_hash_int_3d | ( | unsigned int | kx, |
| unsigned int | ky, | ||
| unsigned int | kz | ||
| ) |
Definition at line 40 of file BLI_hash.h.
References Freestyle::a, usdtokens::b(), and Freestyle::c.
Referenced by BLI_hash_int_3d_to_float().
| BLI_INLINE float BLI_hash_int_3d_to_float | ( | uint32_t | kx, |
| uint32_t | ky, | ||
| uint32_t | kz | ||
| ) |
Definition at line 84 of file BLI_hash.h.
References BLI_hash_int_3d(), and float().
| BLI_INLINE void BLI_hash_pointer_to_color | ( | const void * | ptr, |
| int * | r, | ||
| int * | g, | ||
| int * | b | ||
| ) |
Definition at line 99 of file BLI_hash.h.
References usdtokens::b(), BLI_hash_int(), usdtokens::g(), hash, ptr, and r.
Referenced by blender::deg::color_for_pointer().
| BLI_INLINE unsigned int BLI_hash_string | ( | const char * | str | ) |
Definition at line 69 of file BLI_hash.h.
References Freestyle::c, and str.
Referenced by applyLength(), deformStroke(), drw_call_obinfos_init(), EEVEE_renderpasses_aov_hash(), make_dupli(), blender::nodes::node_shader_output_aov_cc::node_shader_gpu_output_aov(), blender::eevee::Film::read_aov(), and blender::gpu::ShaderInterface::set_input_name().