osrm-backend/include
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
..
contractor Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
customizer Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
engine Reduce copying in API parameter constructors 2021-01-06 23:15:35 +00:00
extractor Increase PackedOSMIDs size to 34 bits 2021-04-24 23:41:02 +01:00
guidance Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
nodejs Validate source/destination indices correctly in nodejs support (#5595) 2021-01-28 06:02:01 -08:00
osrm Undo libosrm API break by adding old interface as method overload (#5861) 2021-01-27 09:14:44 -08:00
partitioner Fix MLD level mask generation to support 64-bit masks. (#6123) 2021-09-21 18:09:38 +01:00
server Immediately close bad connections to prevent file exhaustion 2021-09-04 01:55:36 +01:00
storage Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
updater Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
util Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00