Blender V2.61 - r43446
|
#include "MT_random.h"
Go to the source code of this file.
Defines | |
#define | N 624 |
#define | M 397 |
#define | MATRIX_A 0x9908b0df |
#define | UPPER_MASK 0x80000000 |
#define | LOWER_MASK 0x7fffffff |
#define | TEMPERING_MASK_B 0x9d2c5680 |
#define | TEMPERING_MASK_C 0xefc60000 |
#define | TEMPERING_SHIFT_U(y) (y >> 11) |
#define | TEMPERING_SHIFT_S(y) (y << 7) |
#define | TEMPERING_SHIFT_T(y) (y << 15) |
#define | TEMPERING_SHIFT_L(y) (y >> 18) |
Functions | |
void | MT_srand (unsigned int seed) |
unsigned int | MT_rand () |
Variables | |
static unsigned int | mt [N] |
static int | mti = N+1 |
Definition in file MT_random.cpp.
#define LOWER_MASK 0x7fffffff |
Definition at line 69 of file MT_random.cpp.
Referenced by MT_rand().
#define M 397 |
Definition at line 66 of file MT_random.cpp.
Referenced by MT_rand().
#define MATRIX_A 0x9908b0df |
Definition at line 67 of file MT_random.cpp.
Referenced by MT_rand().
#define N 624 |
Definition at line 65 of file MT_random.cpp.
Referenced by MT_rand(), and MT_srand().
#define TEMPERING_MASK_B 0x9d2c5680 |
Definition at line 72 of file MT_random.cpp.
Referenced by MT_rand().
#define TEMPERING_MASK_C 0xefc60000 |
Definition at line 73 of file MT_random.cpp.
Referenced by MT_rand().
#define TEMPERING_SHIFT_L | ( | y | ) | (y >> 18) |
Definition at line 77 of file MT_random.cpp.
Referenced by MT_rand().
#define TEMPERING_SHIFT_S | ( | y | ) | (y << 7) |
Definition at line 75 of file MT_random.cpp.
Referenced by MT_rand().
#define TEMPERING_SHIFT_T | ( | y | ) | (y << 15) |
Definition at line 76 of file MT_random.cpp.
Referenced by MT_rand().
#define TEMPERING_SHIFT_U | ( | y | ) | (y >> 11) |
Definition at line 74 of file MT_random.cpp.
Referenced by MT_rand().
#define UPPER_MASK 0x80000000 |
Definition at line 68 of file MT_random.cpp.
Referenced by MT_rand().
unsigned int MT_rand | ( | ) |
Definition at line 94 of file MT_random.cpp.
References LOWER_MASK, M, MATRIX_A, mt, MT_srand(), mti, N, TEMPERING_MASK_B, TEMPERING_MASK_C, TEMPERING_SHIFT_L, TEMPERING_SHIFT_S, TEMPERING_SHIFT_T, TEMPERING_SHIFT_U, and UPPER_MASK.
Referenced by MT_random().
void MT_srand | ( | unsigned int | seed | ) |
unsigned int mt[N] [static] |
Definition at line 79 of file MT_random.cpp.
Referenced by gp_draw_stroke(), marble_int(), MT_rand(), MT_srand(), node_menus_register(), recent_files_menu_register(), ui_item_menutype_func(), ui_menu_block_set_keymaps(), ui_tooltip_create(), uiItemM(), uiPupMenuInvoke(), wm_block_create_splash(), WM_menutype_find(), and WM_menutype_free().
int mti = N+1 [static] |
Definition at line 80 of file MT_random.cpp.
Referenced by build_dag_object(), crazyspace_build_sculpt(), curve_calc_modifiers_post(), curve_calc_modifiers_pre(), curve_calc_orcodm(), curve_get_tesselate_point(), draw_modifier(), ED_object_modifier_add(), ED_object_modifier_move_down(), ED_object_modifier_move_up(), editmesh_calc_modifiers(), editmesh_get_first_deform_matrices(), editmesh_modifier_is_enabled(), get_multires_dm(), lattice_calc_modifiers(), mesh_calc_modifiers(), mesh_create_derived_for_modifier(), modifier_add_itemf(), modifier_apply_obdata(), modifier_apply_shape(), modifier_copyData(), modifier_couldBeCage(), modifier_dependsOnTime(), modifier_free(), modifier_isEnabled(), modifier_new(), modifier_nonGeometrical(), modifier_sameTopology(), modifier_supportsMapping(), modifier_unique_name(), modifiers_calcDataMasks(), modifiers_foreachIDLink(), modifiers_foreachObjectLink(), modifiers_foreachTexLink(), modifiers_getCageIndex(), MT_rand(), MT_srand(), multiresModifier_reshapeFromDeformMod(), sculpt_get_first_deform_matrices(), sculpt_modifiers_active(), and write_modifiers().