Skip to content

Commit 8c75f8a

Browse files
committed
Fix compilation
1 parent d50cb46 commit 8c75f8a

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

interface/core/memory/memory.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@
3636
#include "../traits/is_comparable_with_not_equal_operator.h"
3737
#include "../templates/move.h"
3838
#include "../templates/forward.h"
39-
40-
#if defined(HD_SSE2)
41-
#include <emmintrin.h>
42-
#endif
39+
#include "../simd.h"
4340

4441
namespace hud
4542
{

interface/core/simd.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef HD_INC_CORE_SIMD_H
2+
#define HD_INC_CORE_SIMD_H
3+
#if defined(HD_SSE2)
4+
#include <emmintrin.h>
5+
#endif
6+
#if defined(HD_SSE4_1)
7+
#include <smmintrin.h> // _mm_testz_si128
8+
#endif
9+
#endif // HD_INC_CORE_SIMD_H

interface/core/string/encoding/ascii.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef HD_INC_CORE_STRING_ENCODING_ASCII_H
22
#define HD_INC_CORE_STRING_ENCODING_ASCII_H
33
#include "../../slice.h"
4-
4+
#include "../../simd.h"
55
namespace hud::encoding
66
{
77
/**

0 commit comments

Comments
 (0)