Skip to content

Commit

Permalink
* soft_f16: disable native fp16 support on x86 macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
a2flo committed Apr 1, 2024
1 parent e2187f0 commit 04e7aab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constexpr/soft_f16.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ using namespace std;
#include <floor/core/cpp_consteval.hpp>

// TODO: detect arm targets on non-apple platforms
#if defined(__APPLE__) // prefer __fp16 over f16c support
#if defined(__APPLE__) && !defined(__x86_64__)
#define FLOOR_HAS_NATIVE_FP16 1
#elif defined(__F16C__)
#define FLOOR_HAS_NATIVE_FP16 2
Expand Down
2 changes: 1 addition & 1 deletion floor/build_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13845
13847
2 changes: 1 addition & 1 deletion floor/build_version.hpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define FLOOR_BUILD_VERSION 13845
#define FLOOR_BUILD_VERSION 13847

0 comments on commit 04e7aab

Please sign in to comment.