mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 01:00:46 +00:00
add guard to check sse2 headers
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
#ifndef cglm_intrin_h
|
||||
#define cglm_intrin_h
|
||||
|
||||
#if defined( __SSE__ ) || defined( __SSE2__ )
|
||||
#include <xmmintrin.h>
|
||||
#include <emmintrin.h>
|
||||
|
||||
@@ -22,4 +22,5 @@
|
||||
_mm_shuffle1_ps(_mm_shuffle_ps(a, b, _MM_SHUFFLE(z0, y0, x0, w0)), \
|
||||
z1, y1, x1, w1);
|
||||
|
||||
#endif
|
||||
#endif /* cglm_intrin_h */
|
||||
|
@@ -7,8 +7,8 @@
|
||||
|
||||
#ifndef cglm_mat_simd_avx_h
|
||||
#define cglm_mat_simd_avx_h
|
||||
|
||||
#ifdef __AVX__
|
||||
|
||||
#include "cglm-intrin.h"
|
||||
#include <immintrin.h>
|
||||
|
||||
|
@@ -7,6 +7,7 @@
|
||||
|
||||
#ifndef cglm_mat_sse_h
|
||||
#define cglm_mat_sse_h
|
||||
#if defined( __SSE__ ) || defined( __SSE2__ )
|
||||
|
||||
#include "cglm-intrin.h"
|
||||
|
||||
@@ -258,4 +259,5 @@ glm_mat4_inv_sse2(mat4 mat, mat4 dest) {
|
||||
_mm_store_ps(dest[3], _mm_mul_ps(v3, x0));
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif /* cglm_mat_sse_h */
|
@@ -9,7 +9,7 @@
|
||||
#define cglm_mat_h
|
||||
|
||||
#include "cglm.h"
|
||||
#include "cglm-mat-simd.h"
|
||||
#include "cglm-mat-simd-sse2.h"
|
||||
#include "cglm-mat-simd-avx.h"
|
||||
#include <assert.h>
|
||||
|
||||
|
Reference in New Issue
Block a user