From 616ad91f449a03d0b48a8a124f4d1baa94f869b2 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 31 Jul 2024 22:34:57 +0000 Subject: [PATCH] Fix compiling intrinsics with MSVC. Fixes the error `error C3861: '_castu32_f32': identifier not found`. Fixes #30 --- include/fp16/bitcasts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fp16/bitcasts.h b/include/fp16/bitcasts.h index 1de8d24..ae68843 100644 --- a/include/fp16/bitcasts.h +++ b/include/fp16/bitcasts.h @@ -8,7 +8,7 @@ #include #endif -#if defined(__INTEL_COMPILER) +#if defined(__INTEL_COMPILER) || defined(_MSC_VER) && (_MSC_VER >= 1932) && (defined(_M_IX86) || defined(_M_X64)) #include #endif