Skip to content

Commit

Permalink
Define FMAPreventer on clang
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 30, 2024
1 parent 0ac0911 commit 0d65cc0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions numerics/fma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ inline bool const& UseHardwareFMA = FMAPreventer::use_hardware_fma;
// The functions in this file unconditionally wrap the appropriate intrinsics.
// The caller may only use them if |UseHardwareFMA| is true.
inline bool const UseHardwareFMA = PRINCIPIA_USE_HARDWARE_FMA_DEFAULT;
#if PRINCIPIA_COMPILER_MSVC
class FMAPreventer; // Undefined.
#else
class FMAPreventer {}; // Nothing to prevent.
#endif
#endif

#undef PRINCIPIA_USE_HARDWARE_FMA_DEFAULT
Expand Down

0 comments on commit 0d65cc0

Please sign in to comment.