Skip to content

Commit

Permalink
Fix compiling intrinsics with MSVC.
Browse files Browse the repository at this point in the history
Fixes the error `error C3861: '_castu32_f32': identifier not found`.

Fixes Maratyszcza#30
  • Loading branch information
brendandahl committed Jul 31, 2024
1 parent 98b0a46 commit 616ad91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fp16/bitcasts.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdint.h>
#endif

#if defined(__INTEL_COMPILER)
#if defined(__INTEL_COMPILER) || defined(_MSC_VER) && (_MSC_VER >= 1932) && (defined(_M_IX86) || defined(_M_X64))
#include <immintrin.h>
#endif

Expand Down

0 comments on commit 616ad91

Please sign in to comment.