From b7cf5ee90646be5cc99285e91b7ebaa63a922fdf Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 4 May 2024 15:59:48 +0800 Subject: [PATCH] Auto-update xsimd to 13.0.0 (#3941) * Update xsimd to 13.0.0 * Update xmake.lua * Update xmake.lua * Update xmake.lua * Update xmake.lua --------- Co-authored-by: c8ef --- packages/x/xsimd/xmake.lua | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/packages/x/xsimd/xmake.lua b/packages/x/xsimd/xmake.lua index bde1374aa..1649d8bb5 100644 --- a/packages/x/xsimd/xmake.lua +++ b/packages/x/xsimd/xmake.lua @@ -7,6 +7,7 @@ package("xsimd") add_urls("https://github.com/xtensor-stack/xsimd/archive/refs/tags/$(version).tar.gz", "https://github.com/xtensor-stack/xsimd.git") + add_versions("13.0.0", "8bdbbad0c3e7afa38d88d0d484d70a1671a1d8aefff03f4223ab2eb6a41110a3") add_versions("12.1.1", "73f94a051278ef3da4533b691d31244d12074d5d71107473a9fd8d7be15f0110") add_versions("7.6.0", "eaf47f1a316ef6c3287b266161eeafc5aa61226ce5ac6c13502546435b790252") add_versions("8.0.3", "d1d41253c4f82eaf2f369d7fcb4142e35076cf8675b9d94caa06ecf883024344") @@ -29,27 +30,24 @@ package("xsimd") on_test(function (package) if package:version():ge("8.0") then assert(package:check_cxxsnippets({test = [[ - #include - #include - - #include "xsimd/memory/xsimd_alignment.hpp" - - using namespace xsimd; - - struct mock_container {}; - - void test() { - using u_vector_type = std::vector; - using a_vector_type = std::vector>; - - using u_vector_align = container_alignment_t; - using a_vector_align = container_alignment_t; - using mock_align = container_alignment_t; - - if (!std::is_same::value) abort(); - if (!std::is_same::value) abort(); - if (!std::is_same::value) abort(); + #include "xsimd/xsimd.hpp" + + namespace xsimd { + template + inline batch mandel(const batch_bool &_active, + const batch &c_re, + const batch &c_im, int maxIters) { + using float_batch_type = batch; + using int_batch_type = batch; + + float_batch_type z_re = c_re; + float_batch_type z_im = c_im; + int_batch_type vi(0); + return vi; } + } // namespace xsimd + + void test() {} ]]}, {configs = {languages = "c++14"}})) else assert(package:check_cxxsnippets({test = [[