File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -723,9 +723,12 @@ map<DurationSize, shared_ptr<ProbabilityMap>> Model::runIterations(
723723 // use independent seeds so that if we remove one threshold it doesn't affect the other
724724 // HACK: seed_seq takes a list of integers now, so multiply and convert to get more digits
725725 // NOTE: use abs() because negative numbers act differently on arm64 vs x64 vs windows
726- // NOTE: was matching to 15 digits (digits10 - 6) but use half precision so less likely
727- // mismatches happen on different hardware/os combinations
728- constexpr auto precision = std::numeric_limits<size_t >::digits10 / 2 ;
726+ // // NOTE: was matching to 15 digits (digits10 - 6) but use half precision so less likely
727+ // // mismatches happen on different hardware/os combinations
728+ // constexpr auto precision = std::numeric_limits<size_t>::digits10 / 2;
729+ // NOTE: std::numeric_limits<size_t>::digits10 varies on different hardware
730+ constexpr auto precision = 10 ;
731+ static_assert (std::numeric_limits<size_t >::digits10 >= precision);
729732 const auto lat = static_cast <size_t >(abs (start_point.latitude ()) * pow (10 , precision));
730733 const auto lon = static_cast <size_t >(abs (start_point.longitude ()) * pow (10 , precision));
731734 logging::debug (
You can’t perform that action at this time.
0 commit comments