Skip to content

Commit

Permalink
Merge pull request #1311 from alusch/neon-compile-error
Browse files Browse the repository at this point in the history
Fix build error with GLM_FORCE_INTRINSICS and NEON #1311
  • Loading branch information
Groovounet authored Jan 5, 2025
2 parents 5221557 + b30313a commit 18feaec
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 4 deletions.
2 changes: 1 addition & 1 deletion glm/detail/func_common_simd.inl
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ namespace glm {
template<length_t L, qualifier Q>
struct compute_splat<L, float, Q, true> {
template<int c>
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, float, Q> call(vec<L, float, Q> const& a)
GLM_FUNC_QUALIFIER GLM_CONSTEXPR static vec<L, float, Q> call(vec<L, float, Q> const&)
{}

template<>
Expand Down
6 changes: 3 additions & 3 deletions glm/detail/type_vec_simd.inl
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ struct _swizzle_base1<L, uint, Q, E0, E1, E2, E3, true> : public _swizzle_base1<
{
static bool call(vec<L, float, Q> const& v1, vec<L, float, Q> const& v2)
{
return !compute_vec_equal<float, Q, false, 32, true>::call(v1, v2);
return !compute_vec_equal<L, float, Q, false, 32, true>::call(v1, v2);
}
};

Expand All @@ -930,7 +930,7 @@ struct _swizzle_base1<L, uint, Q, E0, E1, E2, E3, true> : public _swizzle_base1<
{
static bool call(vec<L, uint, Q> const& v1, vec<L, uint, Q> const& v2)
{
return !compute_vec_equal<uint, Q, false, 32, true>::call(v1, v2);
return !compute_vec_equal<L, uint, Q, false, 32, true>::call(v1, v2);
}
};

Expand All @@ -939,7 +939,7 @@ struct _swizzle_base1<L, uint, Q, E0, E1, E2, E3, true> : public _swizzle_base1<
{
static bool call(vec<L, int, Q> const& v1, vec<L, int, Q> const& v2)
{
return !compute_vec_equal<int, Q, false, 32, true>::call(v1, v2);
return !compute_vec_equal<L, int, Q, false, 32, true>::call(v1, v2);
}
};

Expand Down
1 change: 1 addition & 0 deletions test/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ glmCreateTestGTC(core_force_arch_unknown)
glmCreateTestGTC(core_force_compiler_unknown)
glmCreateTestGTC(core_force_explicit_ctor)
glmCreateTestGTC(core_force_inline)
glmCreateTestGTC(core_force_intrinsics)
glmCreateTestGTC(core_force_platform_unknown)
glmCreateTestGTC(core_force_pure)
glmCreateTestGTC(core_force_unrestricted_gentype)
Expand Down
Loading

0 comments on commit 18feaec

Please sign in to comment.