Blender Git Loki
Git Commits -> Revision 8cbbded
Revision 8cbbded by Jacques Lucke (master) July 20, 2020, 10:16 (GMT) |
Refactor: Update integer type usage This updates the usage of integer types in code I wrote according to our new style guides. Major changes: * Use signed instead of unsigned integers in many places. * C++ containers in blenlib use `int64_t` for size and indices now (instead of `uint`). * Hash values for C++ containers are 64 bit wide now (instead of 32 bit). I do hope that I broke no builds, but it is quite likely that some compiler reports slightly different errors. Please let me know when there are any errors. If the fix is small, feel free to commit it yourself. I compiled successfully on linux with gcc and on windows. |
Commit Details:
Full Hash: 8cbbdedaf4dfec9e320e7e2be58b75d256950df1
Parent Commit: 686ab4c
Lines Changed: +1277, -1284
87 Modified Paths:
/source/blender/blenlib/BLI_allocator.hh (+1, -1) (Diff)
/source/blender/blenlib/BLI_array.hh (+17, -28) (Diff)
/source/blender/blenlib/BLI_color.hh (+8, -8) (Diff)
/source/blender/blenlib/BLI_disjoint_set.hh (+14, -13) (Diff)
/source/blender/blenlib/BLI_dot_export.hh (+2, -2) (Diff)
/source/blender/blenlib/BLI_float3.hh (+4, -4) (Diff)
/source/blender/blenlib/BLI_float4x4.hh (+3, -3) (Diff)
/source/blender/blenlib/BLI_hash.hh (+24, -38) (Diff)
/source/blender/blenlib/BLI_hash_tables.hh (+53, -48) (Diff)
/source/blender/blenlib/BLI_index_mask.hh (+15, -15) (Diff)
/source/blender/blenlib/BLI_index_range.hh (+36, -28) (Diff)
/source/blender/blenlib/BLI_linear_allocator.hh (+15, -14) (Diff)
/source/blender/blenlib/BLI_listbase_wrapper.hh (+3, -3) (Diff)
/source/blender/blenlib/BLI_map.hh (+48, -47) (Diff)
/source/blender/blenlib/BLI_map_slots.hh (+10, -10) (Diff)
/source/blender/blenlib/BLI_memory_utils.hh (+45, -22) (Diff)
/source/blender/blenlib/BLI_probing_strategies.hh (+29, -29) (Diff)
/source/blender/blenlib/BLI_rand.hh (+1, -1) (Diff)
/source/blender/blenlib/BLI_resource_collector.hh (+1, -1) (Diff)
/source/blender/blenlib/BLI_set.hh (+34, -33) (Diff)
/source/blender/blenlib/BLI_set_slots.hh (+13, -13) (Diff)
/source/blender/blenlib/BLI_span.hh (+49, -40) (Diff)
/source/blender/blenlib/BLI_stack.hh (+8, -8) (Diff)
/source/blender/blenlib/BLI_string_ref.hh (+29, -24) (Diff)
/source/blender/blenlib/BLI_vector.hh (+55, -63) (Diff)
/source/blender/blenlib/BLI_vector_set.hh (+46, -44) (Diff)
/source/blender/blenlib/BLI_vector_set_slots.hh (+12, -12) (Diff)
/source/blender/blenlib/intern/BLI_index_range.cc (+11, -11) (Diff)
/source/blender/blenlib/intern/dot_export.cc (+2, -2) (Diff)
/source/blender/blenlib/intern/rand.cc (+9, -10) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_cache.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_cache.h (+1, -1) (Diff)
/source/blender/depsgraph/intern/depsgraph_registry.cc (+2, -0) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_modifier.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_modifier.h (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_component.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_component.h (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_id.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_id.h (+1, -1) (Diff)
/source/blender/functions/FN_array_spans.hh (+12, -10) (Diff)
/source/blender/functions/FN_attributes_ref.hh (+26, -26) (Diff)
/source/blender/functions/FN_cpp_type.hh (+46, -46) (Diff)
/source/blender/functions/FN_generic_vector_array.hh (+23, -23) (Diff)
/source/blender/functions/FN_multi_function.hh (+5, -5) (Diff)
/source/blender/functions/FN_multi_function_builder.hh (+9, -9) (Diff)
/source/blender/functions/FN_multi_function_data_type.hh (+2, -2) (Diff)
/source/blender/functions/FN_multi_function_network.hh (+35, -35) (Diff)
/source/blender/functions/FN_multi_function_params.hh (+29, -29) (Diff)
/source/blender/functions/FN_multi_function_signature.hh (+6, -6) (Diff)
/source/blender/functions/FN_spans.hh (+22, -18) (Diff)
/source/blender/functions/intern/attributes_ref.cc (+3, -3) (Diff)
/source/blender/functions/intern/multi_function_builder.cc (+5, -5) (Diff)
/source/blender/functions/intern/multi_function_network.cc (+10, -10) (Diff)
/source/blender/functions/intern/multi_function_network_evaluation.cc (+10, -10) (Diff)
/source/blender/functions/intern/multi_function_network_optimization.cc (+23, -23) (Diff)
/source/blender/nodes/intern/derived_node_tree.cc (+9, -9) (Diff)
/source/blender/nodes/intern/node_tree_multi_function.cc (+2, -2) (Diff)
/source/blender/nodes/NOD_derived_node_tree.hh (+22, -22) (Diff)
/source/blender/nodes/NOD_node_tree_multi_function.hh (+3, -3) (Diff)
/source/blender/nodes/NOD_node_tree_ref.hh (+13, -13) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombRGB.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.cc (+1, -1) (Diff)
/source/blender/simulation/intern/particle_allocator.cc (+7, -7) (Diff)
/source/blender/simulation/intern/particle_allocator.hh (+8, -8) (Diff)
/source/blender/simulation/intern/particle_function.cc (+7, -7) (Diff)
/source/blender/simulation/intern/particle_function.hh (+4, -4) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+7, -7) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+15, -16) (Diff)
/tests/gtests/blenlib/BLI_array_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_disjoint_set_test.cc (+1, -1) (Diff)
/tests/gtests/blenlib/BLI_index_mask_test.cc (+1, -1) (Diff)
/tests/gtests/blenlib/BLI_index_range_test.cc (+43, -43) (Diff)
/tests/gtests/blenlib/BLI_linear_allocator_test.cc (+6, -6) (Diff)
/tests/gtests/blenlib/BLI_map_test.cc (+42, -42) (Diff)
/tests/gtests/blenlib/BLI_set_test.cc (+27, -27) (Diff)
/tests/gtests/blenlib/BLI_span_test.cc (+32, -32) (Diff)
/tests/gtests/blenlib/BLI_stack_cxx_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_string_ref_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_vector_set_test.cc (+28, -28) (Diff)
/tests/gtests/blenlib/BLI_vector_test.cc (+60, -96) (Diff)
/tests/gtests/functions/FN_array_spans_test.cc (+1, -1) (Diff)
/tests/gtests/functions/FN_attributes_ref_test.cc (+1, -1) (Diff)
/tests/gtests/functions/FN_cpp_type_test.cc (+1, -1) (Diff)
/tests/gtests/functions/FN_multi_function_network_test.cc (+5, -5) (Diff)
/tests/gtests/functions/FN_multi_function_test.cc (+5, -5) (Diff)
/source/blender/blenlib/BLI_array.hh (+17, -28) (Diff)
/source/blender/blenlib/BLI_color.hh (+8, -8) (Diff)
/source/blender/blenlib/BLI_disjoint_set.hh (+14, -13) (Diff)
/source/blender/blenlib/BLI_dot_export.hh (+2, -2) (Diff)
/source/blender/blenlib/BLI_float3.hh (+4, -4) (Diff)
/source/blender/blenlib/BLI_float4x4.hh (+3, -3) (Diff)
/source/blender/blenlib/BLI_hash.hh (+24, -38) (Diff)
/source/blender/blenlib/BLI_hash_tables.hh (+53, -48) (Diff)
/source/blender/blenlib/BLI_index_mask.hh (+15, -15) (Diff)
/source/blender/blenlib/BLI_index_range.hh (+36, -28) (Diff)
/source/blender/blenlib/BLI_linear_allocator.hh (+15, -14) (Diff)
/source/blender/blenlib/BLI_listbase_wrapper.hh (+3, -3) (Diff)
/source/blender/blenlib/BLI_map.hh (+48, -47) (Diff)
/source/blender/blenlib/BLI_map_slots.hh (+10, -10) (Diff)
/source/blender/blenlib/BLI_memory_utils.hh (+45, -22) (Diff)
/source/blender/blenlib/BLI_probing_strategies.hh (+29, -29) (Diff)
/source/blender/blenlib/BLI_rand.hh (+1, -1) (Diff)
/source/blender/blenlib/BLI_resource_collector.hh (+1, -1) (Diff)
/source/blender/blenlib/BLI_set.hh (+34, -33) (Diff)
/source/blender/blenlib/BLI_set_slots.hh (+13, -13) (Diff)
/source/blender/blenlib/BLI_span.hh (+49, -40) (Diff)
/source/blender/blenlib/BLI_stack.hh (+8, -8) (Diff)
/source/blender/blenlib/BLI_string_ref.hh (+29, -24) (Diff)
/source/blender/blenlib/BLI_vector.hh (+55, -63) (Diff)
/source/blender/blenlib/BLI_vector_set.hh (+46, -44) (Diff)
/source/blender/blenlib/BLI_vector_set_slots.hh (+12, -12) (Diff)
/source/blender/blenlib/intern/BLI_index_range.cc (+11, -11) (Diff)
/source/blender/blenlib/intern/dot_export.cc (+2, -2) (Diff)
/source/blender/blenlib/intern/rand.cc (+9, -10) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_cache.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_cache.h (+1, -1) (Diff)
/source/blender/depsgraph/intern/depsgraph_registry.cc (+2, -0) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_modifier.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_modifier.h (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_component.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_component.h (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_id.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_id.h (+1, -1) (Diff)
/source/blender/functions/FN_array_spans.hh (+12, -10) (Diff)
/source/blender/functions/FN_attributes_ref.hh (+26, -26) (Diff)
/source/blender/functions/FN_cpp_type.hh (+46, -46) (Diff)
/source/blender/functions/FN_generic_vector_array.hh (+23, -23) (Diff)
/source/blender/functions/FN_multi_function.hh (+5, -5) (Diff)
/source/blender/functions/FN_multi_function_builder.hh (+9, -9) (Diff)
/source/blender/functions/FN_multi_function_data_type.hh (+2, -2) (Diff)
/source/blender/functions/FN_multi_function_network.hh (+35, -35) (Diff)
/source/blender/functions/FN_multi_function_params.hh (+29, -29) (Diff)
/source/blender/functions/FN_multi_function_signature.hh (+6, -6) (Diff)
/source/blender/functions/FN_spans.hh (+22, -18) (Diff)
/source/blender/functions/intern/attributes_ref.cc (+3, -3) (Diff)
/source/blender/functions/intern/multi_function_builder.cc (+5, -5) (Diff)
/source/blender/functions/intern/multi_function_network.cc (+10, -10) (Diff)
/source/blender/functions/intern/multi_function_network_evaluation.cc (+10, -10) (Diff)
/source/blender/functions/intern/multi_function_network_optimization.cc (+23, -23) (Diff)
/source/blender/nodes/intern/derived_node_tree.cc (+9, -9) (Diff)
/source/blender/nodes/intern/node_tree_multi_function.cc (+2, -2) (Diff)
/source/blender/nodes/NOD_derived_node_tree.hh (+22, -22) (Diff)
/source/blender/nodes/NOD_node_tree_multi_function.hh (+3, -3) (Diff)
/source/blender/nodes/NOD_node_tree_ref.hh (+13, -13) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombRGB.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_sepcombXYZ.cc (+1, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_valToRgb.cc (+1, -1) (Diff)
/source/blender/simulation/intern/particle_allocator.cc (+7, -7) (Diff)
/source/blender/simulation/intern/particle_allocator.hh (+8, -8) (Diff)
/source/blender/simulation/intern/particle_function.cc (+7, -7) (Diff)
/source/blender/simulation/intern/particle_function.hh (+4, -4) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+7, -7) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+15, -16) (Diff)
/tests/gtests/blenlib/BLI_array_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_disjoint_set_test.cc (+1, -1) (Diff)
/tests/gtests/blenlib/BLI_index_mask_test.cc (+1, -1) (Diff)
/tests/gtests/blenlib/BLI_index_range_test.cc (+43, -43) (Diff)
/tests/gtests/blenlib/BLI_linear_allocator_test.cc (+6, -6) (Diff)
/tests/gtests/blenlib/BLI_map_test.cc (+42, -42) (Diff)
/tests/gtests/blenlib/BLI_set_test.cc (+27, -27) (Diff)
/tests/gtests/blenlib/BLI_span_test.cc (+32, -32) (Diff)
/tests/gtests/blenlib/BLI_stack_cxx_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_string_ref_test.cc (+16, -16) (Diff)
/tests/gtests/blenlib/BLI_vector_set_test.cc (+28, -28) (Diff)
/tests/gtests/blenlib/BLI_vector_test.cc (+60, -96) (Diff)
/tests/gtests/functions/FN_array_spans_test.cc (+1, -1) (Diff)
/tests/gtests/functions/FN_attributes_ref_test.cc (+1, -1) (Diff)
/tests/gtests/functions/FN_cpp_type_test.cc (+1, -1) (Diff)
/tests/gtests/functions/FN_multi_function_network_test.cc (+5, -5) (Diff)
/tests/gtests/functions/FN_multi_function_test.cc (+5, -5) (Diff)