Blender
V3.3
|
#include "BLI_math_bits.h"
Go to the source code of this file.
Macros | |
#define | __MATH_BITS_INLINE_C__ |
Functions | |
MINLINE unsigned int | bitscan_forward_uint (unsigned int a) |
MINLINE unsigned int | bitscan_forward_uint64 (unsigned long long a) |
MINLINE int | bitscan_forward_i (int a) |
MINLINE unsigned int | bitscan_forward_clear_uint (unsigned int *a) |
MINLINE int | bitscan_forward_clear_i (int *a) |
MINLINE unsigned int | bitscan_reverse_uint (unsigned int a) |
MINLINE unsigned int | bitscan_reverse_uint64 (unsigned long long a) |
MINLINE int | bitscan_reverse_i (int a) |
MINLINE unsigned int | bitscan_reverse_clear_uint (unsigned int *a) |
MINLINE int | bitscan_reverse_clear_i (int *a) |
MINLINE unsigned int | highest_order_bit_uint (unsigned int n) |
MINLINE unsigned short | highest_order_bit_s (unsigned short n) |
MINLINE int | count_bits_i (unsigned int i) |
MINLINE int | float_as_int (float f) |
MINLINE unsigned int | float_as_uint (float f) |
MINLINE float | int_as_float (int i) |
MINLINE float | uint_as_float (unsigned int i) |
MINLINE float | xor_fl (float x, int y) |
#define __MATH_BITS_INLINE_C__ |
Definition at line 8 of file math_bits_inline.c.
MINLINE int bitscan_forward_clear_i | ( | int * | a | ) |
Definition at line 52 of file math_bits_inline.c.
References Freestyle::a, and bitscan_forward_clear_uint().
Referenced by blender::deg::graph_id_tag_update().
MINLINE unsigned int bitscan_forward_clear_uint | ( | unsigned int * | a | ) |
Definition at line 45 of file math_bits_inline.c.
References Freestyle::a, and bitscan_forward_uint().
Referenced by bitscan_forward_clear_i().
MINLINE int bitscan_forward_i | ( | int | a | ) |
Definition at line 40 of file math_bits_inline.c.
References Freestyle::a, and bitscan_forward_uint().
Referenced by applyMirror(), and BKE_subdiv_to_ccg().
MINLINE unsigned int bitscan_forward_uint | ( | unsigned int | a | ) |
Definition at line 16 of file math_bits_inline.c.
References Freestyle::a, and BLI_assert.
Referenced by bitscan_forward_clear_uint(), bitscan_forward_i(), BLI_bitmap_find_first_unset(), DRW_view_update(), and ED_object_jump_to_bone().
MINLINE unsigned int bitscan_forward_uint64 | ( | unsigned long long | a | ) |
Definition at line 28 of file math_bits_inline.c.
References Freestyle::a, and BLI_assert.
MINLINE int bitscan_reverse_clear_i | ( | int * | a | ) |
Definition at line 93 of file math_bits_inline.c.
References Freestyle::a, and bitscan_reverse_clear_uint().
MINLINE unsigned int bitscan_reverse_clear_uint | ( | unsigned int * | a | ) |
Definition at line 86 of file math_bits_inline.c.
References Freestyle::a, and bitscan_reverse_uint().
Referenced by bitscan_reverse_clear_i(), and TEST().
MINLINE int bitscan_reverse_i | ( | int | a | ) |
Definition at line 81 of file math_bits_inline.c.
References Freestyle::a, and bitscan_reverse_uint().
MINLINE unsigned int bitscan_reverse_uint | ( | unsigned int | a | ) |
Definition at line 57 of file math_bits_inline.c.
References Freestyle::a, and BLI_assert.
Referenced by bitscan_reverse_clear_uint(), bitscan_reverse_i(), and highest_order_bit_uint().
MINLINE unsigned int bitscan_reverse_uint64 | ( | unsigned long long | a | ) |
Definition at line 69 of file math_bits_inline.c.
References Freestyle::a, and BLI_assert.
MINLINE int count_bits_i | ( | unsigned int | i | ) |
Definition at line 116 of file math_bits_inline.c.
Referenced by applyMirror(), eevee_cryptomatte_layers_count(), blender::draw::ExtractorRunDatas::iter_types_len(), and paint_proj_new_stroke().
Definition at line 125 of file math_bits_inline.c.
Referenced by isect_ray_tri_watertight_v3(), and xor_fl().
Definition at line 135 of file math_bits_inline.c.
MINLINE unsigned short highest_order_bit_s | ( | unsigned short | n | ) |
Definition at line 106 of file math_bits_inline.c.
Referenced by EDBM_selectmode_toggle_multi().
MINLINE unsigned int highest_order_bit_uint | ( | unsigned int | n | ) |
Definition at line 98 of file math_bits_inline.c.
References bitscan_reverse_uint().
Definition at line 145 of file math_bits_inline.c.
Referenced by render_result_from_bake(), and xor_fl().
Definition at line 155 of file math_bits_inline.c.
Definition at line 165 of file math_bits_inline.c.
References float_as_int(), int_as_float(), x, and y.
Referenced by isect_ray_tri_watertight_v3().