Skip to content

Commit

Permalink
9. testing floating-point changes for macos pre and post arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
panchaBhuta committed Sep 24, 2024
1 parent e2672f6 commit 5835eb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testFloatingPointPrecision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ int main()
"3.3123412e-38", 3.3123412E-38f, expected_float_3d3123412en38[indexOS]);

std::string expected_double_4d3123412en38[] = { "4.3123412e-38",
#if MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_CLANG
#if MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_CLANG \
|| MACH_MACOS_ARRAY_IDX == MACH_PRE_MACOS14_CLANG
"4.31234119999999987e-38", // macOS
//#elif MACH_MACOS_ARRAY_IDX == MACH_PRE_MACOS14_CLANG
//#elif MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_GNU
#else // default MACH_MACOS_ARRAY_IDX == MACH_PRE_MACOS14_GNU
"4.3123412e-38",
Expand All @@ -165,9 +165,9 @@ int main()
((indexOS==1)?7:std::numeric_limits<double>::digits10) ); // macOS

std::string expected_longdouble_5d3123412en38[] = { "5.3123412e-38",
#if MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_CLANG
#if MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_CLANG \
|| MACH_MACOS_ARRAY_IDX == MACH_PRE_MACOS14_CLANG
"5.31234120000000035e-38",
//#elif MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_CLANG
//#elif MACH_MACOS_ARRAY_IDX == MACH_POST_MACOS14_ARM_GNU
#else // default MACH_MACOS_ARRAY_IDX == MACH_PRE_MACOS14_GNU
"5.3123412e-38", // macOS
Expand Down

0 comments on commit 5835eb6

Please sign in to comment.