Skip to content

Commit

Permalink
Use hardware-accelerated __fp16 type with AArch64 GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
Maratyszcza committed Jun 16, 2024
1 parent 1d8b7c8 commit bc497e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/fp16/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#if defined(__F16C__) || defined(__aarch64__)
#define FP16_USE_FP16_TYPE 1
#endif
#elif defined(__GNUC__)
#if defined(__aarch64__)
#define FP16_USE_FP16_TYPE 1
#endif
#endif
#if !defined(FP16_USE_FP16_TYPE)
#define FP16_USE_FP16_TYPE 0
Expand Down

0 comments on commit bc497e2

Please sign in to comment.