Skip to content

Commit

Permalink
Fix 32-bit x86 build failure with 16c instructions (#244)
Browse files Browse the repository at this point in the history
Add:
    #if defined(__F16C__)
    #        include <immintrin.h>
to the logic in half.h for including intrinsics header, which catches
the i386 case.

Signed-off-by: Cary Phillips <[email protected]>
  • Loading branch information
cary-ilm authored Mar 16, 2022
1 parent 71e2215 commit 28514c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Imath/half.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@
# include <intrin.h>
#elif defined(__x86_64__)
# include <x86intrin.h>
#elif defined(__F16C__)
# include <immintrin.h>
#endif

#include <stdint.h>
Expand Down

0 comments on commit 28514c0

Please sign in to comment.