Replies: 1 comment
-
@tinko92 thanks! On my Mac, the types Using digits==64 instead to test sounds good to me. Indeed, if things are fine then |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When building and running the boost geometry test suite on a laptop with a Snapdragon X CPU (aarch64) in WSL (current develop e78a9fd, GCC 14.1), I get test suite failures for 8 targets, I think, output is attached because it is rather verbose.
test_out.txt
I think, most of this is related to long double being different on this architecture (or rather it is just a soft-float implementation), namely 128 bit rather than 80 bit, so this is not caught by
constexpr bool has_long_double = sizeof(long double) > sizeof(double);
in ./test/algorithms/overlay/get_clusters.cpp or ./test/algorithms/detail/approximately_equals.cpp, at least not in the sense of guaranteeing the same behavior one might expect on x86-64. The test could be changed to std::numeric_limits::digits == 64 and added to places where it is missing. This will fix some but not all of the test case failures, so maybe those are because long double is also used in library code. I see very few spots of this happening directly in code but I don't know how many places useSo I opted to open this as a discussion instead of a PR:
Beta Was this translation helpful? Give feedback.
All reactions