Skip to content

Commit

Permalink
Try to fix build over SSE issues
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Jan 5, 2024
1 parent 1b4cd16 commit 9b502ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/simd-compat/immintrin.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@

#include "simd-compat.h"

#ifdef SIMDE_X86_SSE_NATIVE
#if defined(CARDINAL_INCLUDING_EMULATED_IMMINTRIN_H) || defined(SIMDE_X86_SSE_NATIVE)
# define CARDINAL_INCLUDING_IMMINTRIN_H
# include_next <immintrin.h>
# undef CARDINAL_INCLUDING_IMMINTRIN_H
#else
# define CARDINAL_INCLUDING_EMULATED_IMMINTRIN_H
# include "mmintrin.h"
# include "xmmintrin.h"
# include "emmintrin.h"
# include "pmmintrin.h"
# include "tmmintrin.h"
# include "smmintrin.h"
# undef CARDINAL_INCLUDING_EMULATED_IMMINTRIN_H
#endif
2 changes: 2 additions & 0 deletions include/simd/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

#pragma once

#define CARDINAL_INCLUDING_EMULATED_IMMINTRIN_H
#include "mmintrin.h"
#include "xmmintrin.h"
#include "emmintrin.h"
#include "pmmintrin.h"
#include "tmmintrin.h"
#include "smmintrin.h"
#undef CARDINAL_INCLUDING_EMULATED_IMMINTRIN_H

0 comments on commit 9b502ad

Please sign in to comment.