osrm-backend/include/partitioner
Michael Bell f1f96166c5
Fix MLD level mask generation to support 64-bit masks. (#6123)
The generation of level masks for compactly storing partition cells
supports sizes that can be stored in 64 bits.

The current implementation fails if the total bit sum is 64 bits
exactly. A bit shift mechanism is used that is undefined when the
shift size is equal to the bit size of the underlying type. This
generates an incorrect mask value.

We fix this by adding a special case for a 64 bit offset. Given this
code is called at most |level| times, there will be no effect on
performance. We also update the assertions to reflect 64 bit masks
are now supported.
2021-09-21 18:09:38 +01:00
..
bisection_graph_view.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
bisection_graph.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
bisection_to_partition.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
cell_statistics.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
cell_storage.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
dinic_max_flow.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
edge_based_graph_reader.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
edge_based_graph.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
files.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
inertial_flow.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
multi_level_graph.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
multi_level_partition.hpp Fix MLD level mask generation to support 64-bit masks. (#6123) 2021-09-21 18:09:38 +01:00
partition_graph.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
partitioner_config.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
partitioner.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
recursive_bisection_state.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
recursive_bisection.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
remove_unconnected.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
renumber.hpp Renumber node IDs in .osrm.maneuver_overrides 2018-02-22 11:42:33 +01:00
reorder_first_last.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
serialization.hpp Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
tarjan_graph_wrapper.hpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00