* 增加xsimd库

This commit is contained in:
2026-02-05 20:57:57 +08:00
parent 5b3ed1d1e4
commit 085cb83ae4
245 changed files with 59823 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
/***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
* Martin Renou *
* Copyright (c) QuantStack *
* Copyright (c) Serge Guelton *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
/*
* Make sure the inclusion works correctly without _GNU_SOURCE
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "xsimd/xsimd.hpp"
#include "doctest/doctest.h"
TEST_CASE("[GNU_SOURCE support]")
{
SUBCASE("exp10")
{
CHECK_EQ(xsimd::exp10(0.), 1.);
CHECK_EQ(xsimd::exp10(0.f), 1.f);
}
}