ycpp 0.1.0__cp315-cp315t-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ycpp/__init__.py +110 -0
- ycpp/_array.py +318 -0
- ycpp/_awareness.py +268 -0
- ycpp/_doc.py +718 -0
- ycpp/_event.py +188 -0
- ycpp/_id_map.py +620 -0
- ycpp/_map.py +267 -0
- ycpp/_provider.py +180 -0
- ycpp/_snapshot.py +28 -0
- ycpp/_sticky_index.py +59 -0
- ycpp/_stream.py +91 -0
- ycpp/_sync.py +192 -0
- ycpp/_text.py +239 -0
- ycpp/_transaction.py +287 -0
- ycpp/_typed.py +122 -0
- ycpp/_undo.py +201 -0
- ycpp/_update.py +18 -0
- ycpp/_xml.py +452 -0
- ycpp/_ycpp.cp315t-win_amd64.lib +0 -0
- ycpp/_ycpp.cp315t-win_amd64.pyd +0 -0
- ycpp-0.1.0.data/headers/fast_float/ascii_number.h +766 -0
- ycpp-0.1.0.data/headers/fast_float/bigint.h +638 -0
- ycpp-0.1.0.data/headers/fast_float/constexpr_feature_detect.h +53 -0
- ycpp-0.1.0.data/headers/fast_float/decimal_to_binary.h +212 -0
- ycpp-0.1.0.data/headers/fast_float/digit_comparison.h +455 -0
- ycpp-0.1.0.data/headers/fast_float/fast_float.h +91 -0
- ycpp-0.1.0.data/headers/fast_float/fast_table.h +708 -0
- ycpp-0.1.0.data/headers/fast_float/float_common.h +1432 -0
- ycpp-0.1.0.data/headers/fast_float/parse_number.h +488 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_arithmetic.hpp +267 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_bit.hpp +230 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_cast.hpp +43 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_complex.hpp +112 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_details.hpp +386 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_logical.hpp +240 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_math.hpp +2601 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_memory.hpp +1006 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_rounding.hpp +72 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_swizzle.hpp +260 -0
- ycpp-0.1.0.data/headers/xsimd/arch/common/xsimd_common_trigo.hpp +996 -0
- ycpp-0.1.0.data/headers/xsimd/arch/utils/shifts.hpp +82 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx.hpp +2111 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx2.hpp +1591 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512bw.hpp +724 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512cd.hpp +28 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512dq.hpp +270 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512er.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512f.hpp +2919 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512ifma.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512pf.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512vbmi.hpp +76 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512vbmi2.hpp +130 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512vnni_avx512bw.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avx512vnni_avx512vbmi2.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_avxvnni.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_common.hpp +26 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_common_fwd.hpp +127 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_constants.hpp +393 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_emulated.hpp +787 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_fma3_avx.hpp +93 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_fma3_avx2.hpp +46 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_fma3_sse.hpp +97 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_fma4.hpp +92 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_i8mm_neon64.hpp +17 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_isa.hpp +146 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_neon.hpp +3580 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_neon64.hpp +1614 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_rvv.hpp +1515 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_scalar.hpp +1210 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_sse2.hpp +2333 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_sse3.hpp +66 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_sse4_1.hpp +510 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_sse4_2.hpp +44 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_ssse3.hpp +186 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_sve.hpp +1186 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_vsx.hpp +916 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_vxe.hpp +787 -0
- ycpp-0.1.0.data/headers/xsimd/arch/xsimd_wasm.hpp +1819 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_arch.hpp +242 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_config.hpp +620 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpu_features.hpp +50 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpu_features_arm.hpp +132 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpu_features_ppc.hpp +54 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpu_features_riscv.hpp +95 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpu_features_s390x.hpp +56 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpu_features_x86.hpp +1044 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_cpuid.hpp +144 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_getauxval.hpp +159 -0
- ycpp-0.1.0.data/headers/xsimd/config/xsimd_macros.hpp +76 -0
- ycpp-0.1.0.data/headers/xsimd/math/xsimd_rem_pio2.hpp +707 -0
- ycpp-0.1.0.data/headers/xsimd/memory/xsimd_aligned_allocator.hpp +349 -0
- ycpp-0.1.0.data/headers/xsimd/memory/xsimd_alignment.hpp +102 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_all_registers.hpp +57 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_api.hpp +3106 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx2_register.hpp +44 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512bw_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512cd_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512dq_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512er_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512f_register.hpp +77 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512ifma_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512pf_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512vbmi2_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512vbmi_register.hpp +51 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512vnni_avx512bw_register.hpp +54 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx512vnni_avx512vbmi2_register.hpp +53 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avx_register.hpp +64 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_avxvnni_register.hpp +44 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_batch.hpp +1665 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_batch_constant.hpp +571 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_batch_fwd.hpp +41 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_common_arch.hpp +49 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_emulated_register.hpp +80 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_fma3_avx2_register.hpp +50 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_fma3_avx_register.hpp +50 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_fma3_sse_register.hpp +50 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_fma4_register.hpp +50 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_i8mm_neon64_register.hpp +55 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_neon64_register.hpp +55 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_neon_register.hpp +130 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_register.hpp +96 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_rvv_register.hpp +491 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_sse2_register.hpp +59 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_sse3_register.hpp +49 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_sse4_1_register.hpp +48 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_sse4_2_register.hpp +48 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_ssse3_register.hpp +48 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_sve_register.hpp +216 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_traits.hpp +408 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_utils.hpp +462 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_vsx_register.hpp +77 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_vxe_register.hpp +86 -0
- ycpp-0.1.0.data/headers/xsimd/types/xsimd_wasm_register.hpp +59 -0
- ycpp-0.1.0.data/headers/xsimd/utils/bits.hpp +122 -0
- ycpp-0.1.0.data/headers/xsimd/utils/xsimd_type_traits.hpp +145 -0
- ycpp-0.1.0.data/headers/xsimd/xsimd.hpp +43 -0
- ycpp-0.1.0.dist-info/DELVEWHEEL +2 -0
- ycpp-0.1.0.dist-info/METADATA +15 -0
- ycpp-0.1.0.dist-info/RECORD +142 -0
- ycpp-0.1.0.dist-info/WHEEL +4 -0
- ycpp.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll +0 -0
- ycpp.libs/msvcp140_1-226498d4bfcb4f07974757b596ebec45.dll +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/***************************************************************************
|
|
2
|
+
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
|
|
3
|
+
* Martin Renou *
|
|
4
|
+
* Copyright (c) QuantStack *
|
|
5
|
+
* Copyright (c) Serge Guelton *
|
|
6
|
+
* *
|
|
7
|
+
* Distributed under the terms of the BSD 3-Clause License. *
|
|
8
|
+
* *
|
|
9
|
+
* The full license is in the file LICENSE, distributed with this software. *
|
|
10
|
+
****************************************************************************/
|
|
11
|
+
|
|
12
|
+
#ifndef XSIMD_SSSE3_HPP
|
|
13
|
+
#define XSIMD_SSSE3_HPP
|
|
14
|
+
|
|
15
|
+
#include <cstddef>
|
|
16
|
+
#include <type_traits>
|
|
17
|
+
|
|
18
|
+
#include "../types/xsimd_ssse3_register.hpp"
|
|
19
|
+
#include "../types/xsimd_utils.hpp"
|
|
20
|
+
|
|
21
|
+
namespace xsimd
|
|
22
|
+
{
|
|
23
|
+
|
|
24
|
+
namespace kernel
|
|
25
|
+
{
|
|
26
|
+
using namespace types;
|
|
27
|
+
|
|
28
|
+
// abs
|
|
29
|
+
template <class A, class T, std::enable_if_t<std::is_integral<T>::value && std::is_signed<T>::value>>
|
|
30
|
+
XSIMD_INLINE batch<T, A> abs(batch<T, A> const& self, requires_arch<ssse3>) noexcept
|
|
31
|
+
{
|
|
32
|
+
XSIMD_IF_CONSTEXPR(sizeof(T) == 1)
|
|
33
|
+
{
|
|
34
|
+
return _mm_abs_epi8(self);
|
|
35
|
+
}
|
|
36
|
+
else XSIMD_IF_CONSTEXPR(sizeof(T) == 2)
|
|
37
|
+
{
|
|
38
|
+
return _mm_abs_epi16(self);
|
|
39
|
+
}
|
|
40
|
+
else XSIMD_IF_CONSTEXPR(sizeof(T) == 4)
|
|
41
|
+
{
|
|
42
|
+
return _mm_abs_epi32(self);
|
|
43
|
+
}
|
|
44
|
+
else XSIMD_IF_CONSTEXPR(sizeof(T) == 8)
|
|
45
|
+
{
|
|
46
|
+
return _mm_abs_epi64(self);
|
|
47
|
+
}
|
|
48
|
+
else
|
|
49
|
+
{
|
|
50
|
+
assert(false && "unsupported arch/op combination");
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// extract_pair
|
|
56
|
+
namespace detail
|
|
57
|
+
{
|
|
58
|
+
|
|
59
|
+
template <class T, class A>
|
|
60
|
+
XSIMD_INLINE batch<T, A> extract_pair(batch<T, A> const&, batch<T, A> const& other, std::size_t, std::index_sequence<>) noexcept
|
|
61
|
+
{
|
|
62
|
+
return other;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
template <class T, class A, std::size_t I, std::size_t... Is>
|
|
66
|
+
XSIMD_INLINE batch<T, A> extract_pair(batch<T, A> const& self, batch<T, A> const& other, std::size_t i, std::index_sequence<I, Is...>) noexcept
|
|
67
|
+
{
|
|
68
|
+
if (i == I)
|
|
69
|
+
{
|
|
70
|
+
return _mm_alignr_epi8(self, other, sizeof(T) * I);
|
|
71
|
+
}
|
|
72
|
+
else
|
|
73
|
+
return extract_pair(self, other, i, std::index_sequence<Is...>());
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
template <class A, class T, class = std::enable_if_t<std::is_integral<T>::value>>
|
|
78
|
+
XSIMD_INLINE batch<T, A> extract_pair(batch<T, A> const& self, batch<T, A> const& other, std::size_t i, requires_arch<ssse3>) noexcept
|
|
79
|
+
{
|
|
80
|
+
constexpr std::size_t size = batch<T, A>::size;
|
|
81
|
+
assert(i < size && "index in bounds");
|
|
82
|
+
return detail::extract_pair(self, other, i, std::make_index_sequence<size>());
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// reduce_add
|
|
86
|
+
template <class A, class T, class = std::enable_if_t<std::is_integral<T>::value>>
|
|
87
|
+
XSIMD_INLINE T reduce_add(batch<T, A> const& self, requires_arch<ssse3>) noexcept
|
|
88
|
+
{
|
|
89
|
+
XSIMD_IF_CONSTEXPR(sizeof(T) == 2)
|
|
90
|
+
{
|
|
91
|
+
__m128i tmp1 = _mm_hadd_epi16(self, self);
|
|
92
|
+
__m128i tmp2 = _mm_hadd_epi16(tmp1, tmp1);
|
|
93
|
+
__m128i tmp3 = _mm_hadd_epi16(tmp2, tmp2);
|
|
94
|
+
return _mm_cvtsi128_si32(tmp3) & 0xFFFF;
|
|
95
|
+
}
|
|
96
|
+
else XSIMD_IF_CONSTEXPR(sizeof(T) == 4)
|
|
97
|
+
{
|
|
98
|
+
__m128i tmp1 = _mm_hadd_epi32(self, self);
|
|
99
|
+
__m128i tmp2 = _mm_hadd_epi32(tmp1, tmp1);
|
|
100
|
+
return _mm_cvtsi128_si32(tmp2);
|
|
101
|
+
}
|
|
102
|
+
else
|
|
103
|
+
{
|
|
104
|
+
return reduce_add(self, sse3 {});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// rotate_left
|
|
109
|
+
template <size_t N, class A>
|
|
110
|
+
XSIMD_INLINE batch<uint8_t, A> rotate_left(batch<uint8_t, A> const& self, requires_arch<ssse3>) noexcept
|
|
111
|
+
{
|
|
112
|
+
return _mm_alignr_epi8(self, self, N);
|
|
113
|
+
}
|
|
114
|
+
template <size_t N, class A>
|
|
115
|
+
XSIMD_INLINE batch<int8_t, A> rotate_left(batch<int8_t, A> const& self, requires_arch<ssse3>) noexcept
|
|
116
|
+
{
|
|
117
|
+
return bitwise_cast<int8_t>(rotate_left<N, A>(bitwise_cast<uint8_t>(self), ssse3 {}));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
template <size_t N, class A>
|
|
121
|
+
XSIMD_INLINE batch<uint16_t, A> rotate_left(batch<uint16_t, A> const& self, requires_arch<ssse3>) noexcept
|
|
122
|
+
{
|
|
123
|
+
return _mm_alignr_epi8(self, self, 2 * N);
|
|
124
|
+
}
|
|
125
|
+
template <size_t N, class A>
|
|
126
|
+
XSIMD_INLINE batch<int16_t, A> rotate_left(batch<int16_t, A> const& self, requires_arch<ssse3>) noexcept
|
|
127
|
+
{
|
|
128
|
+
return bitwise_cast<int16_t>(rotate_left<N, A>(bitwise_cast<uint16_t>(self), ssse3 {}));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// swizzle (dynamic mask)
|
|
132
|
+
template <class A>
|
|
133
|
+
XSIMD_INLINE batch<uint8_t, A> swizzle(batch<uint8_t, A> const& self, batch<uint8_t, A> mask, requires_arch<ssse3>) noexcept
|
|
134
|
+
{
|
|
135
|
+
return _mm_shuffle_epi8(self, mask);
|
|
136
|
+
}
|
|
137
|
+
template <class A>
|
|
138
|
+
XSIMD_INLINE batch<int8_t, A> swizzle(batch<int8_t, A> const& self, batch<uint8_t, A> mask, requires_arch<ssse3>) noexcept
|
|
139
|
+
{
|
|
140
|
+
return _mm_shuffle_epi8(self, mask);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
template <class A, class T, class IT>
|
|
144
|
+
XSIMD_INLINE std::enable_if_t<std::is_arithmetic<T>::value, batch<T, A>>
|
|
145
|
+
swizzle(batch<T, A> const& self, batch<IT, A> mask, requires_arch<ssse3>) noexcept
|
|
146
|
+
{
|
|
147
|
+
constexpr auto pikes = static_cast<as_unsigned_integer_t<T>>(0x0706050403020100ul);
|
|
148
|
+
constexpr auto comb = static_cast<as_unsigned_integer_t<T>>(0x0101010101010101ul * sizeof(T));
|
|
149
|
+
return bitwise_cast<T>(swizzle(bitwise_cast<uint8_t>(self), bitwise_cast<uint8_t>(mask * comb + pikes), ssse3 {}));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// swizzle (constant mask)
|
|
153
|
+
template <class A, uint16_t V0, uint16_t V1, uint16_t V2, uint16_t V3, uint16_t V4, uint16_t V5, uint16_t V6, uint16_t V7>
|
|
154
|
+
XSIMD_INLINE batch<uint16_t, A> swizzle(batch<uint16_t, A> const& self, batch_constant<uint16_t, A, V0, V1, V2, V3, V4, V5, V6, V7>, requires_arch<ssse3>) noexcept
|
|
155
|
+
{
|
|
156
|
+
constexpr batch_constant<uint8_t, A, 2 * V0, 2 * V0 + 1, 2 * V1, 2 * V1 + 1, 2 * V2, 2 * V2 + 1, 2 * V3, 2 * V3 + 1,
|
|
157
|
+
2 * V4, 2 * V4 + 1, 2 * V5, 2 * V5 + 1, 2 * V6, 2 * V6 + 1, 2 * V7, 2 * V7 + 1>
|
|
158
|
+
mask8;
|
|
159
|
+
return _mm_shuffle_epi8(self, mask8.as_batch());
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
template <class A, uint16_t V0, uint16_t V1, uint16_t V2, uint16_t V3, uint16_t V4, uint16_t V5, uint16_t V6, uint16_t V7>
|
|
163
|
+
XSIMD_INLINE batch<int16_t, A> swizzle(batch<int16_t, A> const& self, batch_constant<uint16_t, A, V0, V1, V2, V3, V4, V5, V6, V7> mask, requires_arch<ssse3>) noexcept
|
|
164
|
+
{
|
|
165
|
+
return bitwise_cast<int16_t>(swizzle(bitwise_cast<uint16_t>(self), mask, ssse3 {}));
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
template <class A, uint8_t V0, uint8_t V1, uint8_t V2, uint8_t V3, uint8_t V4, uint8_t V5, uint8_t V6, uint8_t V7,
|
|
169
|
+
uint8_t V8, uint8_t V9, uint8_t V10, uint8_t V11, uint8_t V12, uint8_t V13, uint8_t V14, uint8_t V15>
|
|
170
|
+
XSIMD_INLINE batch<uint8_t, A> swizzle(batch<uint8_t, A> const& self, batch_constant<uint8_t, A, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15> mask, requires_arch<ssse3>) noexcept
|
|
171
|
+
{
|
|
172
|
+
return swizzle(self, mask.as_batch(), ssse3 {});
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
template <class A, uint8_t V0, uint8_t V1, uint8_t V2, uint8_t V3, uint8_t V4, uint8_t V5, uint8_t V6, uint8_t V7,
|
|
176
|
+
uint8_t V8, uint8_t V9, uint8_t V10, uint8_t V11, uint8_t V12, uint8_t V13, uint8_t V14, uint8_t V15>
|
|
177
|
+
XSIMD_INLINE batch<int8_t, A> swizzle(batch<int8_t, A> const& self, batch_constant<uint8_t, A, V0, V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11, V12, V13, V14, V15> mask, requires_arch<ssse3>) noexcept
|
|
178
|
+
{
|
|
179
|
+
return swizzle(self, mask.as_batch(), ssse3 {});
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
#endif
|