Skip to content

Commit

Permalink
Fix float reproducibility tests on Apple Silicon chips
Browse files Browse the repository at this point in the history
These only need to be disabled on select x86 chips but are fine to
run on all Apple CPUs.
  • Loading branch information
ChrisThrasher committed Mar 13, 2024
1 parent a2a3c55 commit ad36611
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ namespace {
// into smaller type when the type is saved into memory. This obviously
// leads to a different answer, than doing the math in the correct precision.
#if ( defined( _MSC_VER ) && _M_IX86_FP < 2 ) || \
( defined( __GNUC__ ) && !defined( __SSE2_MATH__ ) )
( defined( __GNUC__ ) && (defined( __i386__ ) || defined( __x86_64__ )) && !defined( __SSE2_MATH__ ) )
# define CATCH_TEST_CONFIG_DISABLE_FLOAT_REPRODUCIBILITY_TESTS
#endif

Expand Down

0 comments on commit ad36611

Please sign in to comment.