vc_extra_math.h (krita-5.1.3.tar.xz) | : | vc_extra_math.h (krita-5.1.4.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 13 | skipping to change at line 13 | |||
* SPDX-FileCopyrightText: 2022 L. E. Segovia <amy@amyspark.me> | * SPDX-FileCopyrightText: 2022 L. E. Segovia <amy@amyspark.me> | |||
* | * | |||
* SPDX-License-Identifier: GPL-2.0-or-later | * SPDX-License-Identifier: GPL-2.0-or-later | |||
*/ | */ | |||
#ifndef VC_ADDITIONAL_MATH_H | #ifndef VC_ADDITIONAL_MATH_H | |||
#define VC_ADDITIONAL_MATH_H | #define VC_ADDITIONAL_MATH_H | |||
#include <xsimd_extensions/xsimd.hpp> | #include <xsimd_extensions/xsimd.hpp> | |||
#if defined HAVE_XSIMD | #if defined(HAVE_XSIMD) && !defined(XSIMD_NO_SUPPORTED_ARCHITECTURE) | |||
class VcExtraMath | class VcExtraMath | |||
{ | { | |||
public: | public: | |||
// vectorized erf function, precision 1e-5 | // vectorized erf function, precision 1e-5 | |||
template<typename A> | template<typename A> | |||
static inline xsimd::batch<float, A> erf(const xsimd::batch<float, A> x) | static inline xsimd::batch<float, A> erf(const xsimd::batch<float, A> x) | |||
{ | { | |||
using float_v = xsimd::batch<float, A>; | using float_v = xsimd::batch<float, A>; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |