osrm-backend/unit_tests
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
..
common Fix osrm-contract, tests, on Windows 2020-11-15 14:22:26 +00:00
contractor Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
customizer Fix osrm-contract, tests, on Windows 2020-11-15 14:22:26 +00:00
engine Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
extractor Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
fixtures Implement raster source feature to read data from third-party sources, to be used in lua profiles. 2015-09-03 22:28:18 -07:00
library Replace Travis with Github Actions for CI builds 2021-09-03 18:35:01 +02:00
mocks Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
partitioner Fix MLD level mask generation to support 64-bit masks. (#6123) 2021-09-21 18:09:38 +01:00
server Format unit_tests 2021-09-03 18:35:01 +02:00
storage Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
updater Fix PR comments 2017-06-02 18:46:21 +00:00
util Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
CMakeLists.txt add microtar to executables 2018-03-27 20:50:34 +02:00
contractor_tests.cpp Implement exclude flags on CH using shared core 2017-09-01 21:26:00 +02:00
customizer_tests.cpp Move customizer tests to own unit 2017-03-13 23:04:45 +00:00
engine_tests.cpp Remove license headers from project source files; global license 2016-01-04 19:06:32 +01:00
extractor_tests.cpp Remove license headers from project source files; global license 2016-01-04 19:06:32 +01:00
library_tests.cpp Library tests build system integration 2016-04-05 22:58:32 +02:00
partitioner_tests.cpp Rename namespace partition to partitioner 2018-02-02 11:07:18 +01:00
server_tests.cpp Add viaroute suport for new API 2016-04-05 22:58:32 +02:00
storage_tests.cpp First step towards reading/writing tar 2018-03-26 11:02:03 +00:00
updater_tests.cpp Refactor isThroughStreet/Intersection options (#4751) 2018-01-19 13:49:00 -05:00
util_tests.cpp Remove license headers from project source files; global license 2016-01-04 19:06:32 +01:00