Blender V5.3
BLI_hash_c.hh File Reference
#include "BLI_utildefines.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define rot(x, k)
#define final(a, b, c)

Functions

BLI_INLINE unsigned int blender::BLI_hash_int_3d (unsigned int kx, unsigned int ky, unsigned int kz)
BLI_INLINE unsigned int blender::BLI_hash_int_2d (unsigned int kx, unsigned int ky)
BLI_INLINE unsigned int blender::BLI_hash_string (const char *str)
BLI_INLINE float blender::BLI_hash_int_2d_to_float (uint32_t kx, uint32_t ky)
BLI_INLINE float blender::BLI_hash_int_3d_to_float (uint32_t kx, uint32_t ky, uint32_t kz)
BLI_INLINE unsigned int blender::BLI_hash_int (unsigned int k)
BLI_INLINE float blender::BLI_hash_int_01 (unsigned int k)
BLI_INLINE void blender::BLI_hash_pointer_to_color (const void *ptr, int *r, int *g, int *b)

Macro Definition Documentation

◆ final

#define final ( a,
b,
c )
Value:
{ \
c ^= b; \
c -= rot(b, 14); \
a ^= c; \
a -= rot(c, 11); \
b ^= a; \
b -= rot(a, 25); \
c ^= b; \
c -= rot(b, 16); \
a ^= c; \
a -= rot(c, 4); \
b ^= a; \
b -= rot(a, 14); \
c ^= b; \
c -= rot(b, 24); \
} \
((void)0)
#define rot(x, k)

Definition at line 21 of file BLI_hash_c.hh.

Referenced by blender::ui::AbstractTreeViewItem::begin_renaming(), blender::draw::compositor_engine::Instance::begin_sync(), blender::draw::edit_select::Instance::begin_sync(), blender::image_engine::Instance::begin_sync(), blender::workbench::Instance::begin_sync(), blender::ui::AbstractGridViewItem::build_grid_tile(), blender::ui::AbstractTreeViewItem::build_row(), blender::image_engine::Engine::create_instance(), blender::xpbd::TemplatedConstraintSet< Child >::debug_name(), blender::draw::compositor_engine::Instance::end_sync(), blender::draw::edit_select::Instance::end_sync(), blender::image_engine::Instance::end_sync(), blender::workbench::Instance::end_sync(), blender::nodes::node_fn_align_rotation_to_vector_cc::AlignRotationToVectorFunction::get_execution_hints(), blender::draw::compositor_engine::Instance::init(), blender::draw::edit_select::Instance::init(), blender::image_engine::Instance::init(), blender::workbench::Instance::init(), blender::draw::compositor_engine::Instance::name_get(), blender::draw::edit_select::Instance::name_get(), blender::draw::gpencil::Instance::name_get(), blender::draw::overlay::Instance::name_get(), blender::eevee::Instance::name_get(), blender::image_engine::Instance::name_get(), blender::workbench::Instance::name_get(), blender::eevee::Instance::uses_render_border(), blender::draw::gpencil::Instance::~Instance(), blender::io::usd::USDCurvesWriter::~USDCurvesWriter(), and blender::io::usd::USDPointsWriter::~USDPointsWriter().

◆ rot

#define rot ( x,
k )
Value:
(((x) << (k)) | ((x) >> (32 - (k))))

Jenkins Lookup3 Hash Functions. Source: http://burtleburtle.net/bob/c/lookup3.c

Definition at line 20 of file BLI_hash_c.hh.