Blender  V2.59
Defines
BLI_utildefines.h File Reference

Go to the source code of this file.

Defines

#define FALSE   0
#define TRUE   1
#define ELEM(a, b, c)   ( (a)==(b) || (a)==(c) )
#define ELEM3(a, b, c, d)   ( ELEM(a, b, c) || (a)==(d) )
#define ELEM4(a, b, c, d, e)   ( ELEM(a, b, c) || ELEM(a, d, e) )
#define ELEM5(a, b, c, d, e, f)   ( ELEM(a, b, c) || ELEM3(a, d, e, f) )
#define ELEM6(a, b, c, d, e, f, g)   ( ELEM(a, b, c) || ELEM4(a, d, e, f, g) )
#define ELEM7(a, b, c, d, e, f, g, h)   ( ELEM3(a, b, c, d) || ELEM4(a, e, f, g, h) )
#define ELEM8(a, b, c, d, e, f, g, h, i)   ( ELEM4(a, b, c, d, e) || ELEM4(a, f, g, h, i) )
#define ELEM9(a, b, c, d, e, f, g, h, i, j)   ( ELEM4(a, b, c, d, e) || ELEM5(a, f, g, h, i, j) )
#define ELEM10(a, b, c, d, e, f, g, h, i, j, k)   ( ELEM4(a, b, c, d, e) || ELEM6(a, f, g, h, i, j, k) )
#define ELEM11(a, b, c, d, e, f, g, h, i, j, k, l)   ( ELEM4(a, b, c, d, e) || ELEM7(a, f, g, h, i, j, k, l) )
#define SHIFT3(type, a, b, c)   { type tmp; tmp = a; a = c; c = b; b = tmp; }
#define SHIFT4(type, a, b, c, d)   { type tmp; tmp = a; a = d; d = c; c = b; b = tmp; }
#define MIN2(x, y)   ( (x)<(y) ? (x) : (y) )
#define MIN3(x, y, z)   MIN2( MIN2((x),(y)) , (z) )
#define MIN4(x, y, z, a)   MIN2( MIN2((x),(y)) , MIN2((z),(a)) )
#define MAX2(x, y)   ( (x)>(y) ? (x) : (y) )
#define MAX3(x, y, z)   MAX2( MAX2((x),(y)) , (z) )
#define MAX4(x, y, z, a)   MAX2( MAX2((x),(y)) , MAX2((z),(a)) )
#define INIT_MINMAX(min, max)   { (min)[0]= (min)[1]= (min)[2]= 1.0e30f; (max)[0]= (max)[1]= (max)[2]= -1.0e30f; }
#define INIT_MINMAX2(min, max)   { (min)[0]= (min)[1]= 1.0e30f; (max)[0]= (max)[1]= -1.0e30f; }
#define DO_MIN(vec, min)
#define DO_MAX(vec, max)
#define DO_MINMAX(vec, min, max)
#define DO_MINMAX2(vec, min, max)
#define SWAP(type, a, b)   { type sw_ap; sw_ap=(a); (a)=(b); (b)=sw_ap; }
#define ABS(a)   ( (a)<0 ? (-(a)) : (a) )
#define AVG2(x, y)   ( 0.5 * ((x) + (y)) )
#define FTOCHAR(val)   ((val)<=0.0f)? 0 : (((val)>(1.0f-0.5f/255.0f))? 255 : (char)((255.0f*(val))+0.5f))
#define FTOUSHORT(val)   ((val >= 1.0f-0.5f/65535)? 65535: (val <= 0.0f)? 0: (unsigned short)(val*65535.0f + 0.5f))
#define F3TOCHAR3(v2, v1)   (v1)[0]=FTOCHAR((v2[0])); (v1)[1]=FTOCHAR((v2[1])); (v1)[2]=FTOCHAR((v2[2]))
#define F3TOCHAR4(v2, v1)
#define F4TOCHAR4(v2, v1)
#define VECCOPY(v1, v2)   {*(v1)= *(v2); *(v1+1)= *(v2+1); *(v1+2)= *(v2+2);}
#define VECCOPY2D(v1, v2)   {*(v1)= *(v2); *(v1+1)= *(v2+1);}
#define QUATCOPY(v1, v2)   {*(v1)= *(v2); *(v1+1)= *(v2+1); *(v1+2)= *(v2+2); *(v1+3)= *(v2+3);}
#define LONGCOPY(a, b, c)   {int lcpc=c, *lcpa=(int *)a, *lcpb=(int *)b; while(lcpc-->0) *(lcpa++)= *(lcpb++);}
#define VECADD(v1, v2, v3)   {*(v1)= *(v2) + *(v3); *(v1+1)= *(v2+1) + *(v3+1); *(v1+2)= *(v2+2) + *(v3+2);}
#define VECSUB(v1, v2, v3)   {*(v1)= *(v2) - *(v3); *(v1+1)= *(v2+1) - *(v3+1); *(v1+2)= *(v2+2) - *(v3+2);}
#define VECSUB2D(v1, v2, v3)   {*(v1)= *(v2) - *(v3); *(v1+1)= *(v2+1) - *(v3+1);}
#define VECADDFAC(v1, v2, v3, fac)   {*(v1)= *(v2) + *(v3)*(fac); *(v1+1)= *(v2+1) + *(v3+1)*(fac); *(v1+2)= *(v2+2) + *(v3+2)*(fac);}
#define VECSUBFAC(v1, v2, v3, fac)   {*(v1)= *(v2) - *(v3)*(fac); *(v1+1)= *(v2+1) - *(v3+1)*(fac); *(v1+2)= *(v2+2) - *(v3+2)*(fac);}
#define QUATADDFAC(v1, v2, v3, fac)   {*(v1)= *(v2) + *(v3)*(fac); *(v1+1)= *(v2+1) + *(v3+1)*(fac); *(v1+2)= *(v2+2) + *(v3+2)*(fac); *(v1+3)= *(v2+3) + *(v3+3)*(fac);}
#define INPR(v1, v2)   ( (v1)[0]*(v2)[0] + (v1)[1]*(v2)[1] + (v1)[2]*(v2)[2] )
#define CLAMP(a, b, c)   if((a)<(b)) (a)=(b); else if((a)>(c)) (a)=(c)
#define CLAMPIS(a, b, c)   ((a)<(b) ? (b) : (a)>(c) ? (c) : (a))
#define CLAMPTEST(a, b, c)   if((b)<(c)) {CLAMP(a, b, c);} else {CLAMP(a, c, b);}
#define IS_EQ(a, b)   ((fabs((double)(a)-(b)) >= (double) FLT_EPSILON) ? 0 : 1)
#define IS_EQF(a, b)   ((fabsf((float)(a)-(b)) >= (float) FLT_EPSILON) ? 0 : 1)
#define IS_EQT(a, b, c)   ((a > b)? (((a-b) <= c)? 1:0) : ((((b-a) <= c)? 1:0)))
#define IN_RANGE(a, b, c)   ((b < c)? ((b<a && a<c)? 1:0) : ((c<a && a<b)? 1:0))
#define IN_RANGE_INCL(a, b, c)   ((b < c)? ((b<=a && a<=c)? 1:0) : ((c<=a && a<=b)? 1:0))
#define ARRAY_LAST_ITEM(arr_start, arr_dtype, elem_size, tot)   (arr_dtype *)((char*)arr_start + (elem_size*(tot - 1)))
#define ARRAY_HAS_ITEM(item, arr_start, arr_dtype, elem_size, tot)   ((item >= arr_start) && (item <= ARRAY_LAST_ITEM(arr_start, arr_dtype, elem_size, tot)))
#define SWITCH_INT64(a)
#define SWITCH_INT(a)
#define SWITCH_SHORT(a)
#define SET_INT_IN_POINTER(i)   ((void*)(intptr_t)(i))
#define GET_INT_FROM_POINTER(i)   ((int)(intptr_t)(i))
#define STRINGIFY_ARG(x)   #x
#define STRINGIFY(x)   STRINGIFY_ARG(x)
#define AT   __FILE__ ":" STRINGIFY(__LINE__)
#define UNUSED(x)   UNUSED_ ## x
#define WARN_UNUSED
#define BM_INLINE   static
#define _dummy_abort()   (void)0
#define BLI_assert(a)

Detailed Description

Definition in file BLI_utildefines.h.


Define Documentation

#define _dummy_abort ( )    (void)0

Definition at line 210 of file BLI_utildefines.h.

#define ABS (   a)    ( (a)<0 ? (-(a)) : (a) )

Definition at line 100 of file BLI_utildefines.h.

Referenced by _final_goal(), _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), actionzone_modal(), add_filt_passes(), add_transp_speed(), LbmFsgrSolver::advanceParticles(), calc_view_vector(), calcTriangleDivs(), ControlParticles::calculateCpInfluenceOpt(), channelFindMaxd(), channelFindMaxf(), channelFindMaxi(), check_non_flat_quads(), choose_winner(), cloth_bvh_objcollision(), cloth_calc_spring_force(), collision_compute_barycentric(), convex(), createSlideVerts(), createTransEditVerts(), LbmFsgrSolver::debugDisplayNode(), doMirrorOnAxis(), draw_image_seq(), draw_volume(), dvar_eval_rotDiff(), ED_markers_find_nearest_marker(), ed_preview_draw_rect(), effector_falloff(), BasicVector::equal(), equal(), fdrawbezier(), ControlParticles::finishControl(), LbmFsgrSolver::handleCpdata(), handleNumInput(), LbmFsgrSolver::initializeSolverMemory(), ntlGeometryObject::initMovingPoints(), ntlGeometryObject::initMovingPointsAnim(), LbmFsgrSolver::initStandingFluidGradient(), LbmFsgrSolver::mainLoop(), merge_transp_passes(), mouse_select_eval_buffer(), node_link_bezier_points(), RE_filter_value(), RE_zbuf_accumulate_vecblur(), region_azone_icon(), region_scale_modal(), removeDoublesPeel(), reweightArc(), sb_detect_face_pointCached(), set_phong_threshold(), sk_detectMergeGesture(), sk_snapPointStroke(), sk_stroke_filtermval(), softbody_apply_forces(), softbody_calc_forces(), softbody_step(), LbmFsgrSolver::stepMain(), ui_but_float_precision(), ui_but_start_drag(), ui_do_but_COLORBAND(), ui_link_bezier_points(), UI_view2d_curRect_validate_resize(), view_ghost_border_exec(), weld_align_uv(), wm_gesture_evaluate(), and wm_handlers_do().

#define ARRAY_HAS_ITEM (   item,
  arr_start,
  arr_dtype,
  elem_size,
  tot 
)    ((item >= arr_start) && (item <= ARRAY_LAST_ITEM(arr_start, arr_dtype, elem_size, tot)))

Definition at line 142 of file BLI_utildefines.h.

#define ARRAY_LAST_ITEM (   arr_start,
  arr_dtype,
  elem_size,
  tot 
)    (arr_dtype *)((char*)arr_start + (elem_size*(tot - 1)))

Definition at line 141 of file BLI_utildefines.h.

Referenced by get_fcurve_end_keyframes().

#define AT   __FILE__ ":" STRINGIFY(__LINE__)

Definition at line 177 of file BLI_utildefines.h.

Referenced by image_load_sequence_file().

#define AVG2 (   x,
 
)    ( 0.5 * ((x) + (y)) )

Definition at line 102 of file BLI_utildefines.h.

Referenced by dblur().

#define BLI_assert (   a)
Value:
do { \
        if (0 == (a)) { \
                fprintf(stderr, \
                        "BLI_assert failed: %s, %d at \'%s\'\n", \
                        __FILE__, __LINE__, STRINGIFY(a)); \
                _dummy_abort(); \
        } \
} while (0)

Definition at line 223 of file BLI_utildefines.h.

Referenced by append_named_part(), assign_material(), backdrawview3d(), BKE_mesh_validate_arrays(), BLI_get_folder_version(), bpy_import_init(), bpy_lib_exit(), bpy_prop_update_cb(), calc_fcurve_bounds(), calc_fcurve_range(), Color_mul(), cp_key(), do_key(), do_rel_key(), dvert_mirror_op(), foreach_getset(), icon_draw_rect(), key_pointer_size(), lattice_get_deform_verts(), manipulator_setcolor(), Matrix_mul(), object_handle_update(), paste_mtex_copybuf(), pyrna_func_call(), pyrna_prop_array_subscript_slice(), pyrna_struct_getattro(), python_script_exec(), Quaternion_mul(), rearrange_animchannel_flatten_islands(), rna_id_write_error(), rna_idp_path(), rna_path_from_ID_to_idpgroup(), RNA_property_boolean_get(), RNA_property_boolean_get_array(), RNA_property_boolean_get_default(), RNA_property_boolean_get_default_array(), RNA_property_boolean_get_default_index(), RNA_property_boolean_get_index(), RNA_property_boolean_set(), RNA_property_boolean_set_array(), RNA_property_boolean_set_index(), RNA_property_collection_add(), RNA_property_collection_begin(), RNA_property_collection_clear(), RNA_property_collection_length(), RNA_property_collection_lookup_index(), RNA_property_collection_lookup_int(), RNA_property_collection_lookup_string(), RNA_property_collection_move(), RNA_property_collection_raw_array(), RNA_property_collection_remove(), RNA_property_collection_type_get(), RNA_property_enum_get(), RNA_property_enum_get_default(), RNA_property_enum_py_data_get(), RNA_property_enum_set(), RNA_property_float_get(), RNA_property_float_get_array(), RNA_property_float_get_default(), RNA_property_float_get_default_array(), RNA_property_float_get_default_index(), RNA_property_float_get_index(), RNA_property_float_set(), RNA_property_float_set_array(), RNA_property_float_set_index(), RNA_property_int_get(), RNA_property_int_get_array(), RNA_property_int_get_default_array(), RNA_property_int_get_index(), RNA_property_int_set(), RNA_property_int_set_array(), RNA_property_int_set_index(), RNA_property_pointer_add(), RNA_property_pointer_get(), RNA_property_pointer_remove(), RNA_property_pointer_set(), RNA_property_string_default_length(), RNA_property_string_get(), RNA_property_string_get_alloc(), RNA_property_string_get_default(), RNA_property_string_get_default_alloc(), RNA_property_string_length(), RNA_property_string_set(), scaledownx(), scaledowny(), UI_make_axis_color(), uiItemsFullEnumO(), Vector_mul(), vgroup_edit_lattice(), wm_link_append_exec(), and WM_read_file().

#define BM_INLINE   static

Definition at line 199 of file BLI_utildefines.h.

#define CLAMP (   a,
  b,
 
)    if((a)<(b)) (a)=(b); else if((a)>(c)) (a)=(c)

Definition at line 129 of file BLI_utildefines.h.

#define CLAMPIS (   a,
  b,
 
)    ((a)<(b) ? (b) : (a)>(c) ? (c) : (a))
#define CLAMPTEST (   a,
  b,
 
)    if((b)<(c)) {CLAMP(a, b, c);} else {CLAMP(a, c, b);}

Definition at line 131 of file BLI_utildefines.h.

#define DO_MAX (   vec,
  max 
)
Value:
{ if( (max)[0]<(vec)[0] ) (max)[0]= (vec)[0];           \
                                                          if( (max)[1]<(vec)[1] ) (max)[1]= (vec)[1];   \
                                                          if( (max)[2]<(vec)[2] ) (max)[2]= (vec)[2]; } \

Definition at line 78 of file BLI_utildefines.h.

Referenced by BuildBinaryVBVH< Node >::_transform(), bvh_node_merge_bb(), bvh_refit(), RE_rayobject_blibvh_add(), RE_rayobject_blibvh_bb(), rtbuild_heuristic_object_split(), and rtbuild_merge_bb().

#define DO_MIN (   vec,
  min 
)
Value:
{ if( (min)[0]>(vec)[0] ) (min)[0]= (vec)[0];      \
                                                          if( (min)[1]>(vec)[1] ) (min)[1]= (vec)[1];   \
                                                          if( (min)[2]>(vec)[2] ) (min)[2]= (vec)[2]; } \

Definition at line 74 of file BLI_utildefines.h.

Referenced by BuildBinaryVBVH< Node >::_transform(), bvh_node_merge_bb(), bvh_refit(), RE_rayobject_blibvh_add(), RE_rayobject_blibvh_bb(), rtbuild_heuristic_object_split(), and rtbuild_merge_bb().

#define DO_MINMAX (   vec,
  min,
  max 
)
#define DO_MINMAX2 (   vec,
  min,
  max 
)
Value:
{ if( (min)[0]>(vec)[0] ) (min)[0]= (vec)[0]; \
                                                          if( (min)[1]>(vec)[1] ) (min)[1]= (vec)[1]; \
                                                          if( (max)[0]<(vec)[0] ) (max)[0]= (vec)[0]; \
                                                          if( (max)[1]<(vec)[1] ) (max)[1]= (vec)[1]; }

Definition at line 89 of file BLI_utildefines.h.

Referenced by clipUVTransform(), ED_uvedit_minmax(), nodeMakeGroupFromSelected(), p_chart_uv_bbox(), p_smooth(), pixel_bounds_array(), pixel_bounds_uv(), project_paint_begin(), project_paint_delayed_face_init(), uv_map_clip_correct(), and weld_align_uv().

#define ELEM (   a,
  b,
 
)    ( (a)==(b) || (a)==(c) )

Definition at line 46 of file BLI_utildefines.h.

Referenced by acf_generic_group_offset(), act_markers_make_local_exec(), act_markers_make_local_poll(), action_groups_add_new(), action_groups_clear_tempflags(), action_groups_remove_channel(), action_idcode_patch_check(), action_listener(), action_to_animdata(), active_node_panel(), add_bezt_to_keycolumns_list(), add_fmodifier(), add_gpframe_to_keycolumns_list(), add_nlastrip_to_stack(), add_pose_transdata(), add_render_lamp(), alphasort_version_246(), ANIM_channel_draw(), ANIM_channel_draw_widgets(), ANIM_fcurve_delete_from_animdata(), ANIM_fcurve_keyframes_loop(), ANIM_flush_setting_anim_channels(), ANIM_fmodifiers_copy_to_buf(), ANIM_relative_keyingset_add_source(), animchan_sync_group(), animchannels_enable_poll(), animdata_filter_dopesheet_particles(), animdata_filter_dopesheet_texs(), animedit_poll_channels_active(), animedit_poll_channels_nla_tweakmode_off(), animsys_evaluate_action_group(), animviz_calc_motionpaths(), animviz_verify_motionpaths(), apply_objects_internal(), applyModifier(), armature_align_bones_exec(), armature_autoside_names_exec(), armature_deform_verts(), armature_fill_bones_exec(), armature_flip_names_exec(), armature_merge_exec(), armature_parent_set_exec(), autokeyframe_pose_cb_func(), bake_shade(), BKE_add_image_extension(), BKE_animdata_fix_paths_rename(), BKE_animdata_separate_by_basepath(), BKE_animsys_evaluate_animdata(), BKE_image_all_free_anim_ibufs(), BKE_keyingset_add_path(), BKE_keyingset_free_path(), BKE_nla_action_pushdown(), BKE_nla_tweakmode_enter(), BKE_nla_tweakmode_exit(), BKE_nla_validate_state(), BKE_nlameta_add_strip(), BKE_nlameta_flush_transforms(), BKE_nlastrip_find_active(), BKE_nlastrip_validate_autoblends(), BKE_nlastrip_validate_name(), BKE_nlastrips_add_strip(), BKE_nlastrips_clear_metas(), BKE_nlastrips_clear_metastrip(), BKE_nlastrips_make_metas(), BKE_nlastrips_sort_strips(), BKE_nlatrack_add_strip(), BKE_nlatrack_find_active(), BKE_nlatrack_get_bounds(), BKE_nlatrack_has_animated_strips(), BKE_nlatrack_set_active(), BKE_nlatrack_solo_toggle(), BKE_nlatrack_sort_strips(), BKE_nlatracks_have_animated_strips(), BKE_ptcache_ids_from_object(), BKE_texture_dependsOnTime(), BLI_uniquename(), boid_body(), boid_rule_applies(), borderselect_action(), brush_edit_apply(), build_dag_object(), button_activate_init(), buttons_context_draw(), buttons_shading_context(), buttons_shading_new_context(), calc_manipulator_stats(), calchandles_fcurve(), cdf_read_header(), collapseuvs(), compbuf_from_pass(), constraint_delete_exec(), constraint_mat_convertspace(), constraintRotLim(), context_get_markers(), convert_exec(), convertViewVec(), copy_animedit_keys(), copy_attr(), copy_fcurves(), copy_fmodifiers(), copy_nladata(), count_fcurve_keys(), createTransCurveVerts(), createTransData(), createTransNlaData(), createTransPose(), curve_calc_modifiers_post(), curve_get_editcurve(), delete_keyframe(), disconnect_hair(), distribute_grid(), distribute_threads_init_data(), do_2d_mapping(), do_makeDispListCurveTypes(), do_ob_key(), do_outliner_drivers_editop(), do_outliner_keyingset_editop(), do_physical_effector(), do_projectpaint_thread(), do_versions(), do_versions_ipos_to_animato(), do_write_image_or_movie(), draw_ghost_poses(), draw_gpencil_2dimage(), draw_keyframe_shape(), draw_modifier(), draw_new_particle_system(), draw_nla_channel_list_gl(), draw_outliner(), draw_view_icon(), drawConstraint(), drawgrid(), drawlamp(), driver_change_variable_type(), driver_get_variable_value(), driver_remove_cb(), dtar_get_pchan_ptr(), dtar_get_prop_val(), dupli_render_particle_set(), duplicate_fcurve_keys(), dvar_eval_rotDiff(), dynamics_step(), ED_image_update_frame(), ed_marker_move_modal(), ED_object_exit_editmode(), ED_object_modifier_remove(), ED_operator_editsurfcurve(), ED_pose_clear_paths(), ED_pose_deselectall(), ED_space_image_show_render(), ED_undo_push(), ED_vgroup_add_name(), editmode_toggle_poll(), evaluate_time_fmodifiers(), evaluate_value_fmodifiers(), exec_composite_node(), export_fluid_objects(), fcm_cycles_time(), fcurve_bake_modifiers(), fcurve_frame_has_keyframe(), fcurve_free_driver(), fcurve_store_samples(), find_active_fmodifier(), fluid_init_all_channels(), fluid_validate_scene(), free_nladata(), get_constraint_lb(), get_cpa_texture(), get_object_orco(), get_particle_uvco_mcol(), get_pose_channel(), getTransformOrientation(), give_parvert(), gp_actframe_delete_exec(), gp_paint_initstroke(), gpencil_draw_modal(), gpencil_frame_delete_laststroke(), gpencil_layer_delactive(), gpencil_layer_delframe(), gpencil_layer_getactive(), gplayer_make_cfra_list(), GPU_begin_object_materials(), GPU_enable_material(), GPU_free_images_anim(), graph_listener(), graphkeys_click_insert_exec(), group_link_exec(), id_data_find_fcurve(), image_drop_poll(), IMB_convert_profile(), IMB_partial_rect_from_float(), IMB_rect_from_float(), info_header_listener(), init_render_object_data(), init_render_texture(), initshadowbuf(), initSnapping(), initTimeScale(), initTimeTranslate(), initTransform(), ipo_to_animdata(), is_multires_bake(), iter_step_fcurve(), join_exec(), key_get_curValue_rnaPath(), key_to_vertcos(), list_find_fcurve(), list_has_suitable_fmodifier(), load_editMesh(), load_editNurb(), make_editNurb(), make_local_armature(), make_local_brush(), make_local_camera(), make_local_curve(), make_local_lattice(), make_local_mball(), make_local_mesh(), make_local_object(), make_local_particlesettings(), make_local_world(), make_prim(), make_trans_verts(), makebevelcurve(), material_slot_assign_exec(), material_slot_de_select(), modifier_apply_obdata(), modifiers_getVirtualModifierList(), modify_key_op_poll(), mouse_action_keys(), mouse_nla_channels(), new_particle_duplilist(), nla_action_draw_keyframes(), nlaedit_add_transition_exec(), nlaeval_fmodifiers_join_stacks(), nlaeval_fmodifiers_split_stacks(), nlastrip_is_first(), nlastrips_ctime_get_strip(), node_composit_buts_image(), node_drop_poll(), node_link_viewer(), node_set_active(), nodeShaderSynchronizeID(), NodeTagIDChanged(), ntree_get_active_iuser(), ntreeCompositTagAnimated(), ntreeCompositTagGenerators(), ntreeLocalize(), ntreeLocalMerge(), ntreeLocalSync(), ntreeSetOutput(), ob_get_key(), ob_keyframes_loop(), ob_to_keylist(), object_clear_transform_generic_exec(), object_insert_shape_key(), object_origin_set_exec(), offset_to_key(), outliner_draw_tree(), outliner_draw_tree_element(), packAll(), paint_draw_alpha_overlay(), paint_stroke_modal(), panel_activate_state(), parent_set_exec(), particle_billboard(), pose_add_group(), pose_autoside_names_exec(), pose_calculate_paths_exec(), pose_clear_paths_exec(), pose_clear_transform_generic_exec(), pose_constraint_copy_exec(), pose_copy_exec(), pose_flip_names_exec(), pose_group_assign_exec(), pose_group_deselect_exec(), pose_group_select_exec(), pose_group_unassign_exec(), pose_groups_menu_invoke(), pose_ik_add_invoke(), pose_paste_exec(), pose_propagate_fcurve(), pose_remove_group(), pose_select_grouped_exec(), poselib_add_exec(), poselib_add_menu_invoke(), poselib_get_free_index(), poselib_init_new(), poselib_preview_exit(), poselib_preview_handle_event(), poselib_unlink_exec(), poselib_validate(), preview_mat_has_sss(), previewrange_clear_exec(), projectFloatView(), projectIntView(), psys_free(), psys_get_particle_state(), psys_get_texture(), psys_prepare_physics(), psys_reset(), psys_update_path_cache(), ray_ao(), ray_shadow(), RE_is_rendering_allowed(), region_azone_add(), region_rect_recursive(), region_scissor_winrct(), remove_tagged_particles(), render_new_particle_system(), RNA_def_property(), rna_id_write_error(), RNA_property_array_item_char(), RNA_property_array_item_index(), sample_occ_tree(), save_as_invoke(), save_image_doit(), scopes_update(), scroll_modal(), scroll_printstr(), scroller_activate_init(), scroller_activate_invoke(), scroller_activate_modal(), sculpt_combine_proxies(), sculpt_flush_stroke_deform(), sculpt_update_brush_delta(), sculpt_update_cache_variants(), seq_free_sequence(), seq_get_early_out_for_blend_mode(), seq_proxy_get_fname(), seq_update_muting_recursive(), seq_update_sound_bounds_recursive(), sequencer_select_invoke(), set_active_fmodifier(), set_bezier_auto(), set_bezier_vector(), set_boid_values(), setExecutableNodes(), sethandlesNurb(), shade_ray(), shade_smooth_exec(), shader_preview_render(), smooth_fcurve(), snapObjects(), sound_drop_poll(), special_aftertrans_update(), special_editmenu(), special_transvert_update(), stats_object_edit(), system_step(), test_rotmode_euler(), testhandles_fcurve(), text_drop_poll(), time_view_all_exec(), transform_autoik_update(), ui_apply_autokey_undo(), ui_apply_but_func(), ui_apply_but_LINK(), ui_apply_but_ROW(), ui_def_but_rna(), ui_do_but_BLOCK(), ui_do_but_BUT(), ui_do_but_HISTOGRAM(), ui_do_but_HSVCIRCLE(), ui_do_but_HSVCUBE(), ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_TEX(), ui_do_but_WAVEFORM(), ui_do_button(), ui_get_but_string_max_length(), ui_handle_button_event(), ui_handle_button_return_submenu(), ui_handle_list_event(), ui_handle_menu_event(), ui_handle_menu_return_submenu(), ui_handler_panel_region(), ui_item_array(), ui_item_rna_size(), ui_popup_block_create(), ui_textedit_set_cursor_pos(), ui_tooltip_create(), UI_view2d_grid_calc(), UI_view2d_listview_cell_to_view(), uiDefAutoButR(), uiEndPanel(), uiItemPointerR(), uiTemplateImage(), unlink_object(), using_lightcache(), verify_driver_fcurve(), verify_fcurve(), vertcos_to_key(), vertex_group_poll(), vertex_parent_set_exec(), view3d_boxview_clip(), view3d_boxview_sync(), view3d_ima_drop_poll(), view3d_select_invoke(), visualkey_can_use(), vol_precache_objectinstance_threads(), vol_shade_one_lamp(), where_is_pose(), widget_draw_text_icon(), wm_draw_region_clear(), wm_event_do_handlers(), wm_event_do_notifiers(), WM_gesture_new(), wm_handler_ui_call(), wm_keymap_item_find_props(), wm_paintcursor_draw(), wm_read_exotic(), and WM_window_open_temp().

#define ELEM10 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
 
)    ( ELEM4(a, b, c, d, e) || ELEM6(a, f, g, h, i, j, k) )

Definition at line 54 of file BLI_utildefines.h.

Referenced by do_outliner_item_rename().

#define ELEM11 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
  j,
  k,
 
)    ( ELEM4(a, b, c, d, e) || ELEM7(a, f, g, h, i, j, k, l) )

Definition at line 55 of file BLI_utildefines.h.

#define ELEM3 (   a,
  b,
  c,
 
)    ( ELEM(a, b, c) || (a)==(d) )

Definition at line 47 of file BLI_utildefines.h.

Referenced by acf_generic_dsexpand_setting_valid(), acf_generic_indention_flexible(), action_groups_add_channel(), action_groups_find_named(), action_move_fcurves_by_basepath(), add_render_lamp(), ANIM_channel_draw_widgets(), animchan_sync_fcurve(), animedit_poll_channels_active(), animedit_poll_channels_nla_tweakmode_off(), animrecord_check_state(), applyModifier(), bake_shade(), BKE_keyingset_find_path(), BKE_nla_bake(), BKE_nla_tweakmode_enter(), BKE_reports_last_displayable(), boundbox_displist(), build_dag_object(), button_activate_state(), buttons_context_path_data(), buttons_shading_context(), calc_curve_deform(), copy_texture_space(), createTransTexspace(), curve_get_tesselate_point(), direct_link_nodetree(), displist_has_faces(), distribute_threads_init_data(), do_init_render_material(), do_makeDispListCurveTypes(), do_outliner_item_rename(), do_version_ntree_242_2(), draw_actuator_motion(), draw_bounding_volume(), draw_channel_strips(), draw_modifier(), draw_new_particle_system(), draw_object(), draw_outliner(), draw_selected_name(), drawObjectSelect(), drawtexspace(), drawWireExtra(), ED_object_enter_editmode(), Euler_rotate_axis(), get_active_posechannel(), get_dm(), getname_anim_fcurve(), give_matarar(), give_totcolp(), gp_layer_to_curve(), gpencil_layer_setactive(), graphkeys_euler_filter_exec(), icu_to_fcurves(), ima_stepdata__internal(), image_aspect(), image_drop_poll(), initTransInfo(), ipo_to_animato(), knife_cut_exec(), M_Geometry_intersect_line_sphere(), make_prim(), makeshadowbuf(), meshdeform_bind_exec(), modify_key_op_poll(), movie_drop_poll(), node_composit_exec_bilateralblur(), node_get_colorid(), node_only_value(), ntreeShaderGetTexcoMode(), object_get_boundbox(), object_track_clear_exec(), outliner_add_element(), outliner_item_activate(), panel_aligned(), particles_are_dynamic(), picker_new_hide_reveal(), pose_select_same_group(), pose_select_same_layer(), poselib_preview_init_data(), psys_changed_type(), pyrna_param_to_py(), pyrna_prop_to_py(), pyrna_py_to_prop(), radial_control_invoke(), RE_Database_Baking(), reload_sequence_new_file(), rna_idproperty_verify_valid(), rna_raw_access(), sculpt_combine_proxies(), seq_getpath(), seq_must_swap_input_in_blend_mode(), seq_setpath(), special_editmenu(), test_constraints(), text_update_cursor_moved(), transformEvent(), ui_apply_but_BLOCK(), ui_apply_but_TOG(), UI_but_active_drop_name(), ui_but_can_align(), ui_but_copy_paste(), ui_but_drop(), ui_but_find_mouse_over(), ui_def_but(), ui_do_but_BLOCK(), ui_do_but_EXIT(), ui_do_but_HOTKEYEVT(), ui_do_but_KEYEVT(), ui_do_but_NUM(), ui_do_but_SLI(), ui_do_but_textedit(), ui_do_but_TOG(), ui_do_button(), ui_get_but_string(), ui_handle_button_return_submenu(), ui_handle_menu_event(), ui_is_a_warp_but(), ui_is_but_sel(), ui_is_utf8_but(), ui_item_rna_size(), ui_numedit_apply_snapf(), ui_numedit_begin(), ui_set_but_string(), ui_textedit_begin(), ui_tooltip_create(), UI_view2d_totRect_set_resize(), uiDefAutoButsRNA(), viewRedrawPost(), visualkey_can_use(), vol_shade_one_lamp(), WM_keymap_item_compare(), WM_modal_tweak_exit(), and wm_tweakevent_test().

#define ELEM4 (   a,
  b,
  c,
  d,
 
)    ( ELEM(a, b, c) || ELEM(a, d, e) )
#define ELEM5 (   a,
  b,
  c,
  d,
  e,
 
)    ( ELEM(a, b, c) || ELEM3(a, d, e, f) )
#define ELEM6 (   a,
  b,
  c,
  d,
  e,
  f,
  g 
)    ( ELEM(a, b, c) || ELEM4(a, d, e, f, g) )
#define ELEM7 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
 
)    ( ELEM3(a, b, c, d) || ELEM4(a, e, f, g, h) )
#define ELEM8 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i 
)    ( ELEM4(a, b, c, d, e) || ELEM4(a, f, g, h, i) )
#define ELEM9 (   a,
  b,
  c,
  d,
  e,
  f,
  g,
  h,
  i,
 
)    ( ELEM4(a, b, c, d, e) || ELEM5(a, f, g, h, i, j) )

Definition at line 53 of file BLI_utildefines.h.

#define F3TOCHAR3 (   v2,
  v1 
)    (v1)[0]=FTOCHAR((v2[0])); (v1)[1]=FTOCHAR((v2[1])); (v1)[2]=FTOCHAR((v2[2]))

Definition at line 106 of file BLI_utildefines.h.

#define F3TOCHAR4 (   v2,
  v1 
)
Value:
{ (v1)[0]=FTOCHAR((v2[0])); (v1)[1]=FTOCHAR((v2[1])); (v1)[2]=FTOCHAR((v2[2])); \
                                                (v1)[3]=FTOCHAR((v2[3])); (v1)[3] = 255; }

Definition at line 107 of file BLI_utildefines.h.

Referenced by IMB_partial_rect_from_float().

#define F4TOCHAR4 (   v2,
  v1 
)
Value:
{ (v1)[0]=FTOCHAR((v2[0])); (v1)[1]=FTOCHAR((v2[1])); (v1)[2]=FTOCHAR((v2[2])); \
                                                (v1)[3]=FTOCHAR((v2[3])); (v1)[3]=FTOCHAR((v2[3])); }

Definition at line 109 of file BLI_utildefines.h.

Referenced by IMB_partial_rect_from_float().

#define FALSE   0

Definition at line 38 of file BLI_utildefines.h.

Referenced by ACTION_OT_select_border(), actkeys_previewrange_exec(), actkeys_viewall_exec(), add_huff_table(), add_verts_to_dgroups(), addzbuffloatImBuf(), addzbufImBuf(), an_stringdec(), ANIM_OT_channels_select_border(), animchan_sync_fcurve(), applyarmature_fix_boneparents(), applyModifier(), armature_circle_select(), ARMATURE_OT_select_linked(), avi_fetchibuf(), axis_set_view(), backdrawview3d(), BKE_add_image_extension(), BKE_alphatest_ibuf(), BKE_mesh_validate_arrays(), BKE_mesh_validate_dm(), BKE_ptcache_bake(), blend_save_check(), BLI_get_folder_version(), BLI_vfontchar_from_freetypefont(), boundbox_seq(), BPy_BoolVectorProperty(), bpy_class_call(), BPy_EnumProperty(), BPY_filepath_exec(), BPy_FloatVectorProperty(), BPy_IntVectorProperty(), bpy_prop_update_cb(), bpy_resource_path(), build_gammatabs(), calc_action_range(), change_plugin_seq(), change_sequence(), Compress_JPEG(), copy_data_path_button_exec(), copy_libblock(), createTransSeqData(), CURVE_OT_select_random(), cut_seq_hard(), cut_seq_list(), cut_seq_soft(), deselect_all_seq(), do_lasso_select_armature(), do_lasso_select_paintface(), do_paintface_box_select(), draw_armature(), draw_bgpic(), draw_depth(), draw_em_measure_stats(), draw_ghost_poses(), draw_ghost_poses_keys(), draw_ghost_poses_range(), draw_object(), draw_timeline_seq(), drawlamp(), drawObjectSelect(), drawviewborder(), ED_armature_bone_get_mirrored(), ED_fileselect_set_params(), ED_node_composit_default(), ED_node_shader_default(), ED_node_texture_default(), ED_object_add_generic_get_opts(), ED_operator_region_view3d_active(), ed_screen_context(), ED_vgroup_copy_array(), ED_vgroup_data_create(), ED_vgroup_give_array(), ED_view3d_camera_lock_sync(), ED_view3d_draw_offscreen(), ED_view3d_lock(), edgeloop_select(), edgering_select(), editmesh_mark_seam(), effector_add_type(), EM_select_mirrored(), endlocalview(), evaluate_seq_frame(), file_draw_check_exists(), file_operator_to_sfile(), find_nearest_seq(), find_neighboring_sequence(), find_next_prev_edit(), find_next_prev_sequence(), flushTransSeq(), fly_invoke(), fly_modal(), flyApply_ndof(), flyEvent(), foreach_attr_type(), foreach_getset(), foreach_parse_args(), free_imbuf_seq(), freeSeqData(), game_copy_pose(), game_engine_exec(), get_colamd(), give_active_mtex(), give_base_to_objects(), give_ibuf_seq(), give_ibuf_seq_threaded(), gp_stroke_newfrombuffer(), graph_main_area_draw(), GRAPH_OT_select_border(), graphkeys_previewrange_exec(), graphkeys_viewall_exec(), group_instance_add_exec(), handle_app1(), GHOST_SystemCocoa::handleTabletEvent(), ibJpegImageFromCinfo(), icon_draw_at_size(), ignore_parent_tx(), imb_addencodedbufferImBuf(), imb_addrectfloatImBuf(), imb_addrectImBuf(), imb_addtilesImBuf(), IMB_allocImBuf(), imb_cocoaSaveImage(), IMB_convert_profile(), IMB_dupImBuf(), imb_enlargeencodedbufferImBuf(), IMB_isanim(), IMB_ispic(), IMB_ispic_name(), IMB_saveiff(), INFO_OT_select_border(), init_userdef_do_versions(), initFlyInfo(), initgrabz(), GHOST_WindowWin32::initMultisample(), input_have_to_preprocess(), insert_curvekey(), insert_gap(), insert_lattkey(), insert_meshkey(), GHOST_WindowWin32::installDrawingContext(), GHOST_WindowWin32::invalidate(), key_pointer_size(), library_append_end(), load_frame_blendervoxel(), load_frame_raw8(), GHOST_WindowWin32::loadCursor(), logic_buttons(), logicbricks_move_property_get(), M_Geometry_intersect_line_sphere(), M_Geometry_intersect_line_sphere_2d(), make_links_data_exec(), make_object_duplilist_real(), make_prim(), make_prim_ext(), makeBevelList(), makebody_tga(), MARKER_OT_select_border(), mesh_calc_modifiers(), MESH_OT_select_random(), mesh_to_curve(), minmax_object(), mouse_mesh_shortest_path(), mouse_select_menu(), move_camera(), move_exec(), no_gaps(), node_composit_get_image(), NODE_OT_select_border(), nodeSetActiveID(), NodeTagIDChanged(), normal_projection_project_vertex(), NPP_Print(), objchr_to_ftvfontdata(), object_add_material_slot(), object_apply_mat4(), object_camera_add_exec(), object_camera_matrix(), object_lamp_add_exec(), object_make_proxy(), object_origin_set_exec(), OBJECT_OT_group_instance_add(), OBJECT_OT_lamp_add(), OBJECT_OT_select_by_layer(), OBJECT_OT_select_by_type(), OBJECT_OT_select_grouped(), OBJECT_OT_select_linked(), OBJECT_OT_select_random(), OBJECT_OT_vertex_group_clean(), object_remove_material_slot(), operator_search_menu(), outliner_build_tree(), parent_clear_exec(), pose_circle_select(), POSE_OT_select_grouped(), POSE_OT_select_linked(), pose_propagate_get_refVal(), pose_proxy_synchronize(), project_bucket_clip_face(), project_paint_begin(), pyop_call(), pyrna_enum_as_string(), pyrna_enum_to_py(), pyrna_func_call(), pyrna_math_object_from_array(), pyrna_prop_str(), pyrna_prop_to_enum_bitfield(), pyrna_py_to_prop(), pyrna_struct_CreatePyObject(), pyrna_struct_str(), python_script_error_jump_text(), q_scale_linear_interpolation(), RE_BlenderFrame(), read_undosave(), reload_image_strip(), render_border_exec(), report_textview_begin(), report_textview_step(), RNA_action_itemf(), RNA_group_itemf(), rna_id_itemf(), rna_id_write_error(), rna_idp_path_create(), RNA_image_itemf(), rna_path_from_ID_to_idpgroup(), RNA_property_as_string(), RNA_scene_itemf(), RNA_struct_contains_property(), rollBoneByQuat(), rollBoneByQuatAligned(), rollBoneByQuatJoint(), save_as_check(), save_exec(), save_image_doit(), screen_opengl_render_apply(), screenshot_data_create(), select_more_less_seq__internal(), select_single_seq(), seq_active_get(), seq_active_pair_get(), seq_active_set(), seq_effect_find_selected(), seq_foreground_frame_get(), seq_must_swap_input_in_blend_mode(), seq_proxy_get_fname(), seq_remap_paths(), seq_render_scene_strip_impl(), seq_render_strip(), seqbase_isolated_sel_check(), sequence_effect_speed_rebuild_map(), sequencer_add_duplicate_exec(), sequencer_add_effect_strip_exec(), sequencer_add_generic_strip_exec(), sequencer_add_image_strip_exec(), sequencer_add_scene_strip_exec(), sequencer_borderselect_exec(), sequencer_copy_exec(), sequencer_cut_exec(), sequencer_delete_exec(), sequencer_deselect_exec(), sequencer_edit_poll(), sequencer_effect_poll(), sequencer_lock_exec(), sequencer_meta_make_exec(), sequencer_meta_separate_exec(), sequencer_meta_toggle_exec(), sequencer_mute_exec(), SEQUENCER_OT_select_border(), SEQUENCER_OT_sound_strip_add(), SEQUENCER_OT_view_ghost_border(), sequencer_refresh_all_exec(), sequencer_reload_exec(), sequencer_select_inverse_exec(), sequencer_select_invoke(), sequencer_separate_images_exec(), sequencer_snap_exec(), sequencer_swap_exec(), sequencer_unlock_exec(), sequencer_unmute_exec(), sequencer_view_poll(), sequencer_view_selected_exec(), setBoneRollFromNormal(), shader_preview_free(), shrinkwrap_get_tarmat(), shrinkwrapModifier_deform(), skip_fcurve_selected_data(), smooth_view(), sort_seq(), SOUND_OT_open(), spruneL(), tool_search_menu(), touch_seq_files(), tree_element_active_ebone(), tree_element_active_sequence_dup(), ui_button_activate_do(), ui_handle_menu_event(), UI_icon_draw_aspect_color(), UI_icon_draw_preview_aspect_size(), UI_icon_draw_size(), ui_is_a_warp_but(), ui_is_but_rna_valid(), ui_set_but_string(), uiButSetFocusOnEnter(), uiDefAutoButsRNA(), uiItemM(), update_changed_seq_and_deps(), UV_OT_select_border(), Vector_ass_item(), Vector_item(), vertex_group_remove_from_exec(), vgroup_blend(), vgroup_clean(), view3d_draw_transp(), view3d_draw_xray(), view3d_draw_xraytransp(), view3d_get_view_aligned_coordinate(), view3d_layers_exec(), view3d_main_area_draw(), view3d_opengl_select(), view3d_update_depths_rect(), view_ghost_border_exec(), viewdolly_invoke(), viewrotate_modal(), viewzoom_invoke(), vnormal(), weight_paint_sample_enum_itemf(), weight_sample_invoke(), wm_block_dialog_create(), wm_block_search_menu(), wm_enum_search_menu(), wm_handler_operator_call(), wm_macro_modal(), WM_menutype_contains(), WM_operator_call_py(), wm_operator_invoke(), WM_operator_name_call(), wm_resource_check_prev(), wm_window_keymap(), wpaint_mirror_vgroup_ensure(), and writePackedFile().

#define FTOCHAR (   val)    ((val)<=0.0f)? 0 : (((val)>(1.0f-0.5f/255.0f))? 255 : (char)((255.0f*(val))+0.5f))
#define FTOUSHORT (   val)    ((val >= 1.0f-0.5f/65535)? 65535: (val <= 0.0f)? 0: (unsigned short)(val*65535.0f + 0.5f))

Definition at line 105 of file BLI_utildefines.h.

#define GET_INT_FROM_POINTER (   i)    ((int)(intptr_t)(i))
#define IN_RANGE (   a,
  b,
 
)    ((b < c)? ((b<a && a<c)? 1:0) : ((c<a && a<b)? 1:0))
#define IN_RANGE_INCL (   a,
  b,
 
)    ((b < c)? ((b<=a && a<=c)? 1:0) : ((c<=a && a<=b)? 1:0))

Definition at line 138 of file BLI_utildefines.h.

Referenced by draw_keylist(), and nlastrips_ctime_get_strip().

#define INIT_MINMAX (   min,
  max 
)    { (min)[0]= (min)[1]= (min)[2]= 1.0e30f; (max)[0]= (max)[1]= (max)[2]= -1.0e30f; }
#define INIT_MINMAX2 (   min,
  max 
)    { (min)[0]= (min)[1]= 1.0e30f; (max)[0]= (max)[1]= -1.0e30f; }
#define INPR (   v1,
  v2 
)    ( (v1)[0]*(v2)[0] + (v1)[1]*(v2)[1] + (v1)[2]*(v2)[2] )
#define IS_EQ (   a,
 
)    ((fabs((double)(a)-(b)) >= (double) FLT_EPSILON) ? 0 : 1)
#define IS_EQF (   a,
 
)    ((fabsf((float)(a)-(b)) >= (float) FLT_EPSILON) ? 0 : 1)
#define IS_EQT (   a,
  b,
 
)    ((a > b)? (((a-b) <= c)? 1:0) : ((((b-a) <= c)? 1:0)))
#define LONGCOPY (   a,
  b,
 
)    {int lcpc=c, *lcpa=(int *)a, *lcpb=(int *)b; while(lcpc-->0) *(lcpa++)= *(lcpb++);}

Definition at line 116 of file BLI_utildefines.h.

#define MAX2 (   x,
 
)    ( (x)>(y) ? (x) : (y) )

Definition at line 66 of file BLI_utildefines.h.

#define MAX3 (   x,
  y,
 
)    MAX2( MAX2((x),(y)) , (z) )

Definition at line 67 of file BLI_utildefines.h.

#define MAX4 (   x,
  y,
  z,
 
)    MAX2( MAX2((x),(y)) , MAX2((z),(a)) )
#define MIN2 (   x,
 
)    ( (x)<(y) ? (x) : (y) )

Definition at line 62 of file BLI_utildefines.h.

Referenced by accum_density(), addtosamp_shr(), animviz_calc_motionpaths(), area_move_set_limits(), BB_expand(), BB_expand_with_bb(), BKE_ptcache_bake(), BKE_ptcache_id_clear(), BKE_ptcache_invalidate(), BKE_ptcache_load_external(), BLI_bvhtree_overlap(), boid_body(), boid_brain(), border_apply_rect(), BPy_FloatProperty(), BPy_FloatVectorProperty(), BPy_IDArray_ass_slice(), BPy_IDArray_slice(), BPy_IntProperty(), BPy_IntVectorProperty(), brush_add(), brush_painter_do_partial(), calc_action_range(), calc_fcurve_bounds(), calc_fcurve_range(), calc_text_rcts(), calculate_collision_balls(), ccd_mesh_make(), ccd_mesh_update(), cloth_build_springs(), cloth_bvh_objcollision(), cloth_collision_response_static(), Color_ass_slice(), Color_slice(), compatible_bump_compute(), compress_deepsamples(), console_draw_sel(), convert_tree(), copy_exec(), cp_cu_key(), curvemap_buttons_layout(), curvemap_make_table(), curvemapping_add(), curvemapping_changed(), d2dda(), damptrack_evaluate(), defocus_blur(), distribute_grid(), distribute_threads_init_data(), do_curve_key(), do_kink(), do_material_tex(), do_physical_effector(), do_projectpaint_thread(), do_versions(), doEdgeSlide(), DP_energy(), draw_bgpic(), draw_dupli_objects_color(), draw_object(), draw_seq_strips(), draw_textscroll(), drawHelpline(), drawmeta_contents(), ED_region_do_draw(), ED_region_panels(), ED_region_tag_redraw_partial(), Euler_ass_slice(), Euler_slice(), execute_posetree(), fd_read_from_memory(), flyApply(), flyEvent(), get_keyframe_extents(), get_mesh_orco_verts(), get_render_shadow_samples(), get_render_subsurf_level(), glaDrawPixelsSafe(), halo_tile(), imagewraposa(), imagewraposa_aniso(), imapaint_dirty_region(), init_particle_interpolation(), initialize_chain(), initialize_posetree(), key_to_curve(), key_to_latt(), key_to_mesh(), makeBokeh(), Matrix_ass_slice(), Matrix_slice(), morpho_erode(), multiresModifier_set_levels_from_disps(), mywrite(), node_composit_exec_crop(), node_composit_exec_lensdist(), node_composit_exec_scale(), node_draw_group(), node_update(), non_recursive_bvh_div_nodes(), object_handle_update(), partial_redraw_array_merge(), psys_alloc_path_cache_buffers(), psys_get_particle_state(), psys_get_pointcache_start_end(), psys_render_simplify_distribution(), psys_threads_init_path(), ptcache_interpolate(), ptcache_particle_interpolate(), ptcache_read(), Quaternion_ass_slice(), Quaternion_slice(), ray_trace(), RE_init_threadcount(), realloc_particles(), render_frame(), renormalizeWeight(), reset_particle(), resizeArcBuckets(), RNA_property_float_get_array_range(), RNA_property_float_ui_range(), RNA_property_int_get_array_range(), RNA_property_int_ui_range(), round_box__edges(), rtbuild_heuristic_object_split(), RVAddBitmaps_byte(), RVAddBitmaps_float(), RVIsolateHighlights_byte(), RVIsolateHighlights_float(), sb_detect_edge_collisionCached(), scan_for_ext_face_forces(), scatter_settings_new(), screen_find_active_scredge(), screen_test_scale(), sculpt_get_redraw_rect(), seg_intersect(), seq_tx_get_final_right(), sequencer_view_all_preview_exec(), sequencer_view_selected_exec(), shade_sample_sss(), shadow_halo(), shuffle_seq_time_offset_test(), SimpleDeformModifier_do(), sk_applyMergeGesture(), sk_detectMergeGesture(), smokeModifier_init(), softbody_apply_forces(), softbody_step(), splineik_evaluate_bone(), startConstraint(), text_draw(), threaded_makeshadowbufs(), transformEvent(), txt_add_marker(), ui_block_func_POPUP(), ui_do_animate(), ui_get_but_vectorf(), ui_litem_estimate_absolute(), ui_litem_estimate_column_flow(), ui_litem_layout_absolute(), ui_litem_layout_column_flow(), ui_litem_min_width(), ui_numedit_but_HISTOGRAM(), ui_set_but_vectorf(), uiTemplateList(), uiTemplateReportsBanner(), Vector_ass_slice(), Vector_slice(), Vector_to_3d(), Vector_to_4d(), view3d_center_camera_exec(), view3d_opengl_select(), view_all_exec(), widget_draw_preview(), widget_num_tria(), widget_scroll_circle(), widgetbase_draw(), zbuf_add_to_span(), and zbuffer_solid().

#define MIN3 (   x,
  y,
 
)    MIN2( MIN2((x),(y)) , (z) )
#define MIN4 (   x,
  y,
  z,
 
)    MIN2( MIN2((x),(y)) , MIN2((z),(a)) )
#define QUATADDFAC (   v1,
  v2,
  v3,
  fac 
)    {*(v1)= *(v2) + *(v3)*(fac); *(v1+1)= *(v2+1) + *(v3+1)*(fac); *(v1+2)= *(v2+2) + *(v3+2)*(fac); *(v1+3)= *(v2+3) + *(v3+3)*(fac);}

Definition at line 124 of file BLI_utildefines.h.

Referenced by calculate_speedvectors().

#define QUATCOPY (   v1,
  v2 
)    {*(v1)= *(v2); *(v1+1)= *(v2+1); *(v1+2)= *(v2+2); *(v1+3)= *(v2+3);}

Definition at line 115 of file BLI_utildefines.h.

Referenced by add_passes(), add_pose_transdata(), add_transp_speed(), addtosamp_shr(), bevel_list_cyclic_fix_3D(), bevel_list_smooth(), blur_with_reference(), cache_key_incremental_rotation(), cdDM_drawMappedFacesGLSL(), colorfn(), copy_attr(), copy_pose_channel_data(), copy_pose_result(), createTransMBallVerts(), do_alphaover_key(), do_alphaover_mixed(), do_alphaover_premul(), do_bake_shade(), do_copy_rgba(), do_copy_split_rgba(), do_filter3(), do_filter_edge(), do_hue_sat_fac(), do_invert_fac(), do_path_effectors(), do_proc(), do_zcombine(), equalize_bezier(), fcurves_to_pchan_links_get(), game_blend_poses(), gp_draw_data(), gpu_from_node_stack(), GPU_material_bind_uniforms(), ibuf_get_color(), init_render_mesh(), initTransform(), lamp_get_shadow(), make_bevel_list_3D_minimum_twist(), make_bevel_list_segment_3D(), newQuaternionObject(), node_composit_exec_normalize(), node_composit_exec_rgb(), node_shader_exec_output(), nodeGroupExposeAllSockets(), nodeGroupExposeSocket(), nodeGroupUnGroup(), nodestack_get_vec(), object_clear_rot(), ObjectToTransData(), pose_paste_exec(), pose_slide_apply_quat(), poseAnim_mapping_reset(), project_paint_end(), project_paint_PickColor(), psys_get_from_key(), psys_map_index_on_dm(), ray_shadow(), repositionControl(), restoreElement(), shade_input_do_shade(), shade_input_set_strand_texco(), shade_lamp_loop(), sky_tile(), uiWidgetScrollDraw(), view3d_set_clipping(), view3d_split_250(), volume_trace(), where_on_path(), widget_state(), widget_state_menu_item(), widget_state_pulldown(), zbuf_part_project(), zbuf_shadow_project(), zbufclipwire(), and zbufsinglewire().

#define SET_INT_IN_POINTER (   i)    ((void*)(intptr_t)(i))
#define SHIFT3 (   type,
  a,
  b,
 
)    { type tmp; tmp = a; a = c; c = b; b = tmp; }

Definition at line 58 of file BLI_utildefines.h.

Referenced by p_chart_lscm_solve(), and PE_mirror_x().

#define SHIFT4 (   type,
  a,
  b,
  c,
 
)    { type tmp; tmp = a; a = d; d = c; c = b; b = tmp; }

Definition at line 59 of file BLI_utildefines.h.

Referenced by PE_mirror_x().

#define STRINGIFY (   x)    STRINGIFY_ARG(x)
#define STRINGIFY_ARG (   x)    #x

Definition at line 173 of file BLI_utildefines.h.

Referenced by setupArguments().

#define SWAP (   type,
  a,
 
)    { type sw_ap; sw_ap=(a); (a)=(b); (b)=sw_ap; }

Definition at line 97 of file BLI_utildefines.h.

#define SWITCH_INT (   a)
#define SWITCH_INT64 (   a)
Value:
{ \
        char s_i, *p_i; \
        p_i= (char *)&(a); \
        s_i=p_i[0]; p_i[0]=p_i[7]; p_i[7]=s_i; \
        s_i=p_i[1]; p_i[1]=p_i[6]; p_i[6]=s_i; \
        s_i=p_i[2]; p_i[2]=p_i[5]; p_i[5]=s_i; \
        s_i=p_i[3]; p_i[3]=p_i[4]; p_i[4]=s_i; }

Definition at line 145 of file BLI_utildefines.h.

Referenced by cdf_read_header().

#define SWITCH_SHORT (   a)
Value:
{ \
        char s_i, *p_i; \
        p_i= (char *)&(a); \
        s_i=p_i[0]; p_i[0]=p_i[1]; p_i[1]=s_i; }

Definition at line 159 of file BLI_utildefines.h.

#define TRUE   1

Definition at line 42 of file BLI_utildefines.h.

Referenced by actionzone_apply(), GHOST_WindowWin32::activateDrawingContext(), actkeys_viewsel_exec(), add_vertex_invoke(), addzbuffloatImBuf(), addzbufImBuf(), an_stringdec(), applyModifier(), armature_circle_select(), armature_flip_names_exec(), backdrawview3d(), BKE_add_image_extension(), BKE_alphatest_ibuf(), BKE_mesh_validate(), BKE_mesh_validate_arrays(), BKE_mesh_validate_dm(), BKE_ptcache_bake(), blend_save_check(), BLI_vfontchar_from_freetypefont(), blo_read_file_internal(), bpy_class_call(), BPy_EnumProperty(), bpy_lib_enter(), bpy_prop_update_cb(), build_gammatabs(), button_activate_state(), bvhtree_from_mesh_edges(), bvhtree_from_mesh_faces(), bvhtree_from_mesh_verts(), Compress_JPEG(), console_modal_select_apply(), copy_attr(), copy_object(), copy_pose(), CURVE_OT_primitive_bezier_circle_add(), CURVE_OT_primitive_bezier_curve_add(), CURVE_OT_primitive_nurbs_circle_add(), CURVE_OT_primitive_nurbs_curve_add(), CURVE_OT_primitive_nurbs_path_add(), curvesurf_prim_add(), cut_seq_hard(), cut_seq_list(), cut_seq_soft(), d2dda(), Decode_JPEG(), do_bake_thread(), do_lasso_select_armature(), do_render_seq(), do_write_image_or_movie(), draw_depth(), draw_depth_gpencil(), draw_ghost_poses(), draw_ghost_poses_keys(), draw_ghost_poses_range(), drawcamera(), drawObjectSelect(), drawviewborder(), dupli_extrude_cursor(), duplicate_pose_channel_data(), ED_fileselect_set_params(), ED_keymap_uvedit(), ED_object_add_generic_get_opts(), ED_operator_animview_active(), ED_operator_region_view3d_active(), ED_vgroup_copy_array(), ED_vgroup_data_create(), ED_vgroup_give_array(), ED_view3d_camera_lock_sync(), ED_view3d_draw_offscreen(), ED_view3d_lock(), ED_view3d_quadview_update(), ED_view3d_to_object(), ED_view3d_win_to_3d(), face_select_all_exec(), face_select_inverse_exec(), file_draw_check_exists(), file_operator_to_sfile(), fill_input_buffer(), fly_modal(), flyApply(), flyApply_ndof(), flyEvent(), foreach_attr_type(), freeSeqData(), GHOST_SystemWin32::getButtons(), GHOST_WindowWin32::GHOST_WindowWin32(), give_active_mtex(), give_ibuf_seq_threaded(), gp_stroke_newfrombuffer(), graphkeys_view_selected_exec(), handle_app1(), ignore_parent_tx(), image_keymap(), imb_addencodedbufferImBuf(), imb_addrectfloatImBuf(), imb_addrectImBuf(), IMB_convert_profile(), imb_enlargeencodedbufferImBuf(), GHOST_SystemWin32::init(), init_jpeg(), initgrabz(), input_have_to_preprocess(), GHOST_WindowWin32::installDrawingContext(), jpegmemdestmgr_empty_output_buffer(), jpegmemsrcmgr_fill_input_buffer(), key_pointer_size(), linked_limit_default(), load_file(), GHOST_WindowWin32::loadCursor(), logic_buttons(), logicbricks_move_property_get(), M_Geometry_intersect_line_sphere(), M_Geometry_intersect_line_sphere_2d(), make_prim(), make_single_user_exec(), makeBevelList(), makebody_tga(), MESH_OT_primitive_circle_add(), MESH_OT_primitive_cone_add(), MESH_OT_primitive_cube_add(), MESH_OT_primitive_cylinder_add(), MESH_OT_primitive_grid_add(), MESH_OT_primitive_ico_sphere_add(), MESH_OT_primitive_monkey_add(), MESH_OT_primitive_plane_add(), MESH_OT_primitive_uv_sphere_add(), mesh_to_curve(), minmax_object(), motionpaths_calc_update_scene(), mouse_select_menu(), move_camera(), move_exec(), node_composit_exec_output_file(), node_composit_get_image(), nodeMakeGroupFromSelected(), nodeSetActiveID(), NodeTagIDChanged(), normal_projection_project_vertex(), ntreeCopyTree(), objchr_to_ftvfontdata(), object_add_material_slot(), object_armature_add_exec(), object_camera_matrix(), object_constraint_copy_exec(), object_make_proxy(), object_metaball_add_exec(), object_origin_set_exec(), OBJECT_OT_add(), OBJECT_OT_armature_add(), OBJECT_OT_camera_add(), OBJECT_OT_effector_add(), OBJECT_OT_metaball_add(), OBJECT_OT_text_add(), OBJECT_OT_vertex_group_invert(), OBJECT_OT_vertex_group_mirror(), OBJECT_OT_vertex_group_normalize_all(), object_remove_material_slot(), object_select_mirror_exec(), object_track_clear_exec(), parent_clear_exec(), pose_bone_flip_active_exec(), pose_constraint_copy_exec(), pose_flip_names_exec(), pose_propagate_get_refVal(), pose_visual_transform_apply_exec(), project_bucket_clip_face(), project_paint_begin(), ptcache_bake_thread(), pyop_as_string(), pyop_call(), pyop_getrna(), pyop_poll(), PYOP_wrap_macro_define(), pyrna_func_call(), pyrna_py_to_prop(), pyrna_register_class(), python_script_error_jump_text(), q_scale_linear_interpolation(), RE_BlenderAnim(), RE_InitState(), RE_rayobject_octree_intersect(), GHOST_WindowWin32::removeDrawingContext(), report_textview_begin(), report_textview_step(), RNA_action_local_itemf(), rna_def_group_sockets_api(), RNA_group_local_itemf(), rna_id_write_error(), rna_idp_path_create(), RNA_image_local_itemf(), RNA_property_as_string(), RNA_scene_local_itemf(), RNA_struct_contains_property(), rna_undo_itemf(), save_as_check(), save_as_exec(), save_as_invoke(), save_image_doit(), scene_update_for_newframe(), screen_opengl_render_anim_step(), SCREEN_OT_animation_cancel(), screenshot_data_create(), screenshot_startjob(), seq_must_swap_input_in_blend_mode(), seq_proxy_get_fname(), seq_render_strip(), seqbase_isolated_sel_check(), sequencer_add_effect_strip_exec(), sequencer_add_generic_strip_exec(), sequencer_add_image_strip_exec(), sequencer_add_scene_strip_exec(), sequencer_delete_exec(), SEQUENCER_OT_movie_strip_add(), sequencer_paste_exec(), GHOST_SystemWin32::setCursorPosition(), GHOST_WindowWin32::setOrder(), GHOST_WindowWin32::setState(), shrinkwrap_get_tarmat(), smooth_view(), spruneL(), SURFACE_OT_primitive_nurbs_surface_circle_add(), SURFACE_OT_primitive_nurbs_surface_curve_add(), SURFACE_OT_primitive_nurbs_surface_cylinder_add(), SURFACE_OT_primitive_nurbs_surface_sphere_add(), SURFACE_OT_primitive_nurbs_surface_surface_add(), SURFACE_OT_primitive_nurbs_surface_torus_add(), GHOST_WindowWin32::swapBuffers(), tree_element_active_ebone(), txt_comment(), txt_indent(), txt_uncomment(), txt_unindent(), ui_check_but(), ui_do_but_textedit(), UI_icon_draw_preview_aspect_size(), UI_icon_draw_size(), ui_is_a_warp_but(), ui_is_but_rna_valid(), uiLayoutOperatorButs(), uiPupMenuInvoke(), unwrap_exec(), update_changed_seq_recurs(), uv_texture_add_exec(), Vector_getAxis(), Vector_setAxis(), vertex_color_add_exec(), vgroup_blend(), vgroup_delete_edit_mode(), view3d_draw_transp(), view3d_draw_xray(), view3d_draw_xraytransp(), view3d_get_view_aligned_coordinate(), view3d_keymap(), view3d_main_area_draw(), view3d_new(), view3d_opengl_select(), VIEW3D_OT_select_border(), view3d_update_depths_rect(), viewrotate_modal(), visual_transform_apply_exec(), visualkey_get_value(), weight_paint_sample_enum_itemf(), weight_sample_invoke(), wm_block_create_splash(), wm_event_do_handlers(), WM_menutype_contains(), WM_operator_poll_context(), WM_operator_props_dialog_popup(), WM_operator_ui_popup(), WM_operatortype_append_macro(), WM_read_file(), WM_read_homefile(), wm_resource_check_prev(), wm_window_keymap(), write_jpeg(), and writePackedFile().

#define UNUSED (   x)    UNUSED_ ## x

Definition at line 183 of file BLI_utildefines.h.

#define VECADD (   v1,
  v2,
  v3 
)    {*(v1)= *(v2) + *(v3); *(v1+1)= *(v2+1) + *(v3+1); *(v1+2)= *(v2+2) + *(v3+2);}
#define VECADDFAC (   v1,
  v2,
  v3,
  fac 
)    {*(v1)= *(v2) + *(v3)*(fac); *(v1+1)= *(v2+1) + *(v3+1)*(fac); *(v1+2)= *(v2+2) + *(v3+2)*(fac);}
#define VECCOPY (   v1,
  v2 
)    {*(v1)= *(v2); *(v1+1)= *(v2+1); *(v1+2)= *(v2+2);}

Definition at line 113 of file BLI_utildefines.h.

Referenced by _softbody_calc_forces_slice_in_a_thread(), acf_generic_channel_color(), add_pose_transdata(), add_render_lamp(), addDepthPeel(), addNode(), addSnapPoint(), addvert_Nurb(), addvertlist(), Align(), alter_co(), apply_targetless_ik(), applyAxisConstraintRot(), applyAxisConstraintVec(), applyObjectConstraintRot(), applyObjectConstraintVec(), applyProject(), applyTranslation(), applyTransObjects(), armature_deform_verts(), armature_loc_pose_to_bone(), armature_loc_world_to_pose(), atm_tile(), axisProjection(), b_bone_spline_setup(), bake_shade(), base_callback(), basic_integrate(), bevel_list_cyclic_fix_3D(), bevelinside(), bevels_to_filledpoly(), bezt_to_transdata(), BIF_draw_manipulator(), BLI_bvhtree_bb_raycast(), BLI_bvhtree_ray_cast(), BME_addvertlist(), BME_assign_transdata(), BME_bevel_poly(), BME_bevel_set_max(), BME_bmesh_to_derivedmesh(), BME_editmesh_to_bmesh(), BME_MV(), boid_body(), boid_brain(), boid_climb(), boid_find_ground(), boids_precalc_rules(), bone_matrix_translate_y(), brush_comb(), brush_imbuf_new(), brush_length(), brush_painter_do_partial(), brush_puff(), brush_smooth_do(), bspface_init_strand(), bvhselftree_build_from_cloth(), bvhselftree_update_from_cloth(), bvhtree_build_from_cloth(), bvhtree_build_from_mvert(), bvhtree_from_mesh_edges(), bvhtree_from_mesh_faces(), bvhtree_update_from_cloth(), bvhtree_update_from_mvert(), cache_occ_samples(), cache_strand_surface(), calc_shapeKeys(), calc_vertexnormals(), CalcSnapGeometry(), calcTriangleDivs(), calculateCenter(), calculateCenter2D(), calculateCenterBound(), calculateCenterCursor(), calculateCenterMedian(), calculateTransformCenter(), ccd_mesh_make(), ccd_mesh_update(), ccgDM_getFinalVertCo(), CDDM_apply_vert_coords(), CDDM_apply_vert_normals(), cdDM_drawMappedFacesGLSL(), cdDM_foreachMappedFaceCenter(), CDDM_from_editmesh(), cdDM_getVertCo(), cdDM_getVertCos(), choose_winner(), cloneArc(), cloneControl(), closest_point_on_surface(), cloth_bvh_objcollisions_resolve(), cloth_calc_force(), cloth_calc_spring_force(), cloth_collision_response_static(), cloth_from_object(), cloth_to_object(), collapseEdges(), colorfn(), compute_radiance(), constraintTransLim(), convertspline(), copy_attr(), copy_pose_channel_data(), copy_pose_result(), cp_fmatrix(), createSlideVerts(), createSpaceNormal(), createSpaceNormalTangent(), createTransArmatureVerts(), createTransCurveVerts(), createTransLatticeVerts(), createTransMBallVerts(), createTransNlaData(), createTransParticleVerts(), createTransTexspace(), cubemap_glob(), cubemap_ob(), curve_applyVertexCos(), curve_getKeyVertexCos(), curve_getVertexCos(), curve_to_displist(), curve_to_key(), curvemap_make_table(), curvemapping_set_black_white(), database_init_objects(), direct_link_object(), displace_render_vert(), dist_bone_deform(), distribute_threads_init_data(), dl_surf_to_renderdata(), DM_to_meshkey(), do_bake_shade(), do_color_key(), do_copy_a_rgba(), do_copy_rgb(), do_curves_fac(), do_diff_matte(), do_distance_matte(), do_filter3(), do_guides(), do_hair_dynamics(), do_invert(), do_lamp_tex(), do_material_tex(), do_mix_rgb(), do_path_effectors(), do_physical_effector(), do_projectpaint_draw_f(), do_rough(), do_scanconvert_strand(), do_sky_tex(), do_step_cloth(), do_strip_modifiers(), do_texture_effector(), do_versions(), do_volume_tex(), draw_manipulator_rotate(), draw_pose_dofs(), draw_sphere_bone_wire(), draw_volume(), drawHelpline(), drawPropCircle(), drawSubdividedStrokeBy(), duplicate_pose_channel_data(), dvar_eval_locDiff(), dvar_eval_transChan(), ED_object_modifier_convert(), ED_view3d_calc_clipping(), edgering_sel(), edit_to_particle(), editmesh_get_vertex_cos(), editMesh_to_undoMesh(), ElementResize(), ElementRotation(), EM_make_hq_normals(), EM_mesh_copy_edge(), em_snap_to_center(), em_snap_to_cursor(), emDM__calcFaceCent(), emDM_getVert(), envmaptex(), esubdivideflag(), exec_strandsurface_sample(), execute_posetree(), execute_scene(), extrudeflag_face_indiv(), extrudeflag_vert(), face_duplilist(), fcurves_to_pchan_links_get(), fill_scs_points(), filldisplist(), filterSmartReebGraph(), finalize_render_object(), finalizeControl(), flushTransParticles(), font_duplilist(), get_editmesh_orco_verts(), get_effector_data(), get_face_center(), get_new_constraint_target(), get_strand_normal(), getEditBoneRollUpAxis(), GetNormal(), GetPosition(), getSnapPoint(), getTransformOrientation(), getViewVector(), give_base_to_groups(), give_parvert(), globallen(), GPU_buffer_copy_color3(), GPU_lamp_update(), GPU_material_bind(), GPU_material_bind_uniforms(), hair_to_particle(), headerTranslation(), ibuf_get_color(), imagewraposa(), imapaint_project(), imapaint_tri_weights(), implicit_init(), implicit_set_positions(), implicit_solver(), init_frame_smoke(), init_lfvector(), init_mapping(), init_render_curve(), init_render_dm(), init_render_mball(), init_render_mesh(), init_render_world(), initElbeemMesh(), initshadowbuf(), initstar(), intersect_dm_quad_weights(), isb_make_buffer_transp(), join_mesh_exec(), key_block_get_data(), key_to_curve(), key_to_latt(), key_to_mesh(), knife_cut_exec(), lamp_get_visibility(), latt_to_key(), load_editLatt(), load_editMesh(), M_Geometry_intersect_line_line(), M_Geometry_intersect_point_line(), M_Geometry_intersect_ray_tri(), make_bevel_list_3D_tangent(), make_bevel_list_segment_3D(), make_occ_tree(), make_orco_curve(), make_render_halos(), make_trans_verts(), make_vertexcos__mapFunc(), make_vertexcosnos__mapFunc(), makeBevelList(), mball_to_mesh(), merge_firstlast(), mergeBuckets(), mesh_edges_nearest_point(), mesh_faces_nearest_point(), mesh_get_texspace(), mesh_getVertexCos(), mesh_octree_table(), mesh_to_key(), minmax_verts(), motionpaths_calc_bake_targets(), multitex(), mvert_to_particle(), my_tex_space_mesh(), nearest_point_in_tri_surface(), new_particle_duplilist(), newRigNode(), newRigNodeHead(), nextAdaptativeSubdivision(), nextFixedSubdivision(), nextLengthSubdivision(), node_buts_curvecol(), node_composit_exec_normal(), node_composit_exec_texture(), node_shader_exec_camera(), node_shader_exec_geom(), node_shader_exec_invert(), node_shader_exec_material(), node_shader_exec_mix_rgb(), node_shader_exec_normal(), node_shader_exec_rgb(), node_shader_exec_texture(), nodeShaderSynchronizeID(), nodestack_get_vec(), NodeToTransData(), normal_projection_project_vertex(), ntap_bump_compute(), nurbs_to_mdata_customdb(), ob_parvert3(), ObjectToTransData(), occ_build_dco(), occ_face(), occ_form_factor(), occ_lookup(), occ_shade(), occ_visible_quad(), particle_billboard(), particle_intersect_dm(), particle_normal_ren(), pchan_bone_deform(), pchan_to_mat4(), pdDoEffectors(), pe_deflect_emitter(), PE_lasso_select(), PE_minmax(), PE_mirror_particle(), PE_update_mirror_cache(), peelDerivedMesh(), planeProjection(), plugintex(), point_inside_obi(), pointdensity_cache_object(), pointdensity_cache_psys(), pointdensitytex(), pose_grab_with_ik_add(), pose_paste_exec(), poseAnim_mapping_reset(), precache_init_parts(), precalc_guides(), project_paint_begin(), project_paint_face_init(), project_paint_PickFace(), project_renderdata(), psys_cache_edit_paths(), psys_face_mat(), psys_get_birth_coordinates(), psys_get_dupli_path_transform(), psys_get_from_key(), psys_interpolate_face(), psys_make_billboard(), psys_mat_hair_to_object(), psys_mat_hair_to_orco(), psys_particle_on_dm(), psys_particle_on_shape(), psys_render_projected_area(), psys_render_simplify_distribution(), psys_thread_create_path(), ptcache_cloth_interpolate(), ptcache_softbody_interpolate(), ray_ao_qmc(), ray_ao_spheresamp(), ray_fadeout_endcolor(), ray_shadow(), ray_shadow_jitter(), ray_shadow_jittered_coords(), ray_shadow_qmc(), ray_trace(), ray_trace_shadow_rad(), ray_trace_shadow_tra(), RE_Database_Baking(), RE_Database_FromScene(), RE_inithalo(), RE_inithalo_particle(), RE_make_sticky(), RE_vlakren_copy(), RE_vlakren_get_normal(), recalc_emitter_field(), REEB_AxialSymmetry(), REEB_RadialSymmetry(), reference_to_scratch(), refraction(), rekey_particle(), rekey_particle_to_time(), remove_doubles_exec(), remove_tagged_keys(), render_lighting_halo(), render_new_particle_system(), repositionBone(), repositionControl(), repositionNodes(), Resize(), ResizeBetween(), restoreElement(), RIG_addControlBone(), RIG_addEdgeToArc(), RIG_appendEdgeToArc(), RIG_parentControl(), RIG_removeUneededOffsets(), rollBoneByQuat(), rollBoneByQuatAligned(), rollBoneByQuatJoint(), RotationBetween(), rule_average_speed(), rule_avoid_collision(), rule_fight(), rule_follow_leader(), rule_goal_avoid(), sample_occ(), sample_occ_cache(), sb_deflect_face(), sb_detect_aabb_collisionCached(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), SB_estimate_transform(), scatter_tree_new(), scatter_tree_sample(), screw_mesh_exec(), sculpt_restore_mesh(), sculpt_undo_push_node(), sculpt_vertcos_to_key(), SeqSlide(), SeqToTransData(), set_pchan_glColor(), setNearestAxis3d(), SetTSpace(), shade_input_calc_viewco(), shade_input_do_shade(), shade_input_set_normals(), shade_input_set_shade_texco(), shade_input_set_strand(), shade_input_set_strand_texco(), shade_input_set_triangle_i(), shade_input_set_uv(), shade_input_set_vertex_normals(), shade_intersection(), shade_lamp_loop(), shade_material_loop(), shade_one_light(), shade_ray(), shade_sample_sss(), shadeSkyPixel(), shadeSkyView(), shadeSunView(), shadowbuf_autoclip(), shape_propagate(), ShrinkFatten(), shrinkwrap_calc_nearest_surface_point(), shrinkwrap_calc_nearest_vertex(), shrinkwrap_calc_normal_projection(), SimpleDeformModifier_do(), sk_addStrokeSnapPoint(), sk_applyCutGesture(), sk_applyTrimGesture(), sk_convertStroke(), sk_flattenStroke(), sk_getStrokePoint(), sk_getStrokeSnapPoint(), sk_pointToNode(), sk_projectDrawPoint(), sk_straightenStroke(), sk_strokeToArc(), smokeModifier_init(), snap_curs_to_active(), snap_curs_to_sel(), snap_sel_to_curs(), snap_sel_to_grid(), snapArmature(), snapDerivedMesh(), snapEdge(), snapVertex(), softbody_apply_forces(), softbody_apply_goalsnap(), softbody_calc_forces(), softbody_reset(), softbody_restore_prev_step(), softbody_to_object(), softbody_update_positions(), solve_parenting(), sort_faces_exec(), special_transvert_update(), speedvector_project(), splineik_evaluate_bone(), spothalo(), springs_from_mesh(), static_particle_strand(), static_particle_wire(), strand_eval_point(), strand_minmax(), stucci(), subdivide_particle(), subdivideArcBy(), subdividenurb(), target_callback(), TargetSnapActive(), TargetSnapCenter(), TargetSnapClosest(), testAxialSymmetry(), testRadialSymmetry(), texture_procedural(), texture_rgb_blend(), trace_reflect(), trace_refract(), traceray(), Trackball(), Translation(), typecheck_compbuf(), ui_apply_button(), ui_block_func_COL(), ui_blockopen_begin(), ui_draw_gradient(), ui_get_but_vectorf(), ui_handle_button_return_submenu(), ui_numedit_begin(), ui_set_but_vectorf(), undoMesh_to_editMesh(), update_world_cos(), BL_SkinDeformer::UpdateInternal(), UVsToTransData(), vertex_dupli__mapFunc(), VertsToTransData(), view3d_split_250(), viewpixel_to_lampbuf(), vol_get_bounds(), vol_get_emission(), vol_get_reflection_color(), vol_shade_one_lamp(), vol_trace_behind(), volume_trace(), Warp(), where_is_armature_bone(), where_is_ik_bone(), where_is_pose(), where_is_pose_bone(), where_is_pose_bone_tail(), widget_box(), widget_numslider(), widget_state(), widget_state_menu_item(), widget_state_option_menu(), widget_state_pulldown(), zbuf_part_project(), zbuf_render_project(), zbuffer_abuf(), zbufline(), zbufline_onlyZ(), and zbuflineAc().

#define VECCOPY2D (   v1,
  v2 
)    {*(v1)= *(v2); *(v1+1)= *(v2+1);}
#define VECSUB (   v1,
  v2,
  v3 
)    {*(v1)= *(v2) - *(v3); *(v1+1)= *(v2+1) - *(v3+1); *(v1+2)= *(v2+2) - *(v3+2);}

Definition at line 120 of file BLI_utildefines.h.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), area_lamp_energy(), area_lamp_energy_multisample(), basic_integrate(), BME_bevel_get_angle(), BME_bevel_get_vec(), BME_bevel_split_edge(), BME_split_edge(), brush_add(), brush_length(), brush_puff(), brush_smooth_do(), calc_shapeKeys(), calcTriangleDivs(), check_non_flat_quads(), cloth_apply_spring_force(), cloth_build_springs(), cloth_bvh_objcollision(), cloth_calc_force(), cloth_calc_spring_force(), cloth_collision_response_static(), collision_compute_barycentric(), collision_move_object(), connect_hair(), convex(), distribute_grid(), do_hair_dynamics(), draw_uvs_stretch(), draw_volume(), fill_scs_points(), hair_velocity_smoothing(), implicit_solver(), lamp_get_visibility(), load_editMesh(), nearest_point_in_tri_surface(), occ_build_dco(), occ_lookup(), occ_quad_form_factor(), particle_billboard(), pdDoEffectors(), precalc_guides(), psys_get_birth_coordinates(), psys_get_particle_on_path(), psys_interpolate_particle(), psys_make_billboard(), ray_shadow(), ray_shadow_qmc(), ray_trace(), render_new_particle_system(), sample_occ_cache(), save_hair(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), sculpt_vertcos_to_key(), shade_lamp_loop(), shade_ray(), smokeModifier_init(), softbody_calc_forces(), squared_dist(), sub_fmatrix_fmatrix(), sub_lfvector_lfvector(), traverse_octree(), update_velocities(), and vol_get_shadow().

#define VECSUB2D (   v1,
  v2,
  v3 
)    {*(v1)= *(v2) - *(v3); *(v1+1)= *(v2+1) - *(v3+1);}
#define VECSUBFAC (   v1,
  v2,
  v3,
  fac 
)    {*(v1)= *(v2) - *(v3)*(fac); *(v1+1)= *(v2+1) - *(v3+1)*(fac); *(v1+2)= *(v2+2) - *(v3+2)*(fac);}

Definition at line 123 of file BLI_utildefines.h.

Referenced by drawnurb().

#define WARN_UNUSED

Definition at line 189 of file BLI_utildefines.h.