Skip to content

Commit 886ce15

Browse files
committed
WIP
1 parent ef1080a commit 886ce15

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

include/xsimd/arch/xsimd_avx512f.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <type_traits>
1818

1919
#include "../types/xsimd_avx512f_register.hpp"
20+
#include "../types/xsimd_batch_constant.hpp"
2021

2122
namespace xsimd
2223
{

test/test_load_store.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ struct load_store_test
354354
void run_load_mask_pattern(const V& v, const std::string& name, batch_type& b, const array_type& expected, const std::string& label)
355355
{
356356
constexpr auto mask = xsimd::make_batch_bool_constant<value_type, Generator, typename batch_type::arch_type>();
357-
array_type expected_masked{0};
357+
array_type expected_masked { 0 };
358358

359359
for (std::size_t i = 0; i < size; ++i)
360360
{
@@ -415,7 +415,7 @@ struct load_store_test
415415
V& expected_masked,
416416
std::true_type)
417417
{
418-
const auto sentinel = static_cast<value_type>(37);
418+
static constexpr auto sentinel = static_cast<value_type>(37);
419419
V sentinel_expected(size, sentinel);
420420

421421
auto zero_mask = xsimd::make_batch_bool_constant<value_type, mask_none, typename batch_type::arch_type>();
@@ -433,7 +433,8 @@ struct load_store_test
433433
V scratch_slice(res.size());
434434
std::copy(scratch_ptr, scratch_ptr + scratch_slice.size(), scratch_slice.begin());
435435
CHECK_VECTOR_EQ(scratch_slice, sentinel_expected);
436-
CHECK(std::all_of(scratch.begin(), scratch.end(), [sentinel](value_type v) { return v == sentinel; }));
436+
CHECK(std::all_of(scratch.begin(), scratch.end(), [](const value_type v)
437+
{ return v == sentinel; }));
437438

438439
run_store_mask_tests(v, name, b, res, expected_masked, std::true_type {});
439440
}

0 commit comments

Comments
 (0)