ycpp 0.1.0__cp315-cp315t-win_arm64.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_arm64.lib +0 -0
- ycpp/_ycpp.cp315t-win_arm64.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-9cb625fcbc2fbbd6fca1aee8b24b0ebe.dll +0 -0
- ycpp.libs/msvcp140_1-84ac1bc84e09d193dd6ad98c84c0fd94.dll +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/***************************************************************************
|
|
2
|
+
* Copyright (c) Johan Mabille, Sylvain Corlay, Wolf Vollprecht and *
|
|
3
|
+
* Martin Renou *
|
|
4
|
+
* Copyright (c) QuantStack *
|
|
5
|
+
* Copyright (c) Serge Guelton *
|
|
6
|
+
* Copyright (c) Marco Barbone *
|
|
7
|
+
* *
|
|
8
|
+
* Distributed under the terms of the BSD 3-Clause License. *
|
|
9
|
+
* *
|
|
10
|
+
* The full license is in the file LICENSE, distributed with this software. *
|
|
11
|
+
****************************************************************************/
|
|
12
|
+
|
|
13
|
+
#ifndef XSIMD_UTILS_SHIFTS_HPP
|
|
14
|
+
#define XSIMD_UTILS_SHIFTS_HPP
|
|
15
|
+
|
|
16
|
+
#include "../../config/xsimd_macros.hpp"
|
|
17
|
+
#include "../../types/xsimd_batch.hpp"
|
|
18
|
+
#include "../../types/xsimd_batch_constant.hpp"
|
|
19
|
+
#include "../../types/xsimd_traits.hpp"
|
|
20
|
+
|
|
21
|
+
namespace xsimd
|
|
22
|
+
{
|
|
23
|
+
namespace kernel
|
|
24
|
+
{
|
|
25
|
+
namespace utils
|
|
26
|
+
{
|
|
27
|
+
template <typename I, I offset, I length, I... Vs>
|
|
28
|
+
struct select_stride
|
|
29
|
+
{
|
|
30
|
+
template <typename K>
|
|
31
|
+
static constexpr K get(K i, K)
|
|
32
|
+
{
|
|
33
|
+
constexpr I values_array[] = { Vs... };
|
|
34
|
+
return static_cast<K>(values_array[length * i + offset]);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
template <typename I>
|
|
39
|
+
constexpr I lsb_mask(I bit_index)
|
|
40
|
+
{
|
|
41
|
+
if (bit_index == 8 * sizeof(I))
|
|
42
|
+
{
|
|
43
|
+
return ~I { 0 };
|
|
44
|
+
}
|
|
45
|
+
return static_cast<I>((I { 1 } << bit_index) - I { 1 });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
template <class T, class A, T V0, T... Vs>
|
|
49
|
+
constexpr bool all_equals(batch_constant<T, A, V0, Vs...> c)
|
|
50
|
+
{
|
|
51
|
+
return (c == std::integral_constant<T, V0> {}).all();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
template <class T, class A, T... Vs>
|
|
55
|
+
XSIMD_INLINE batch<T, A> bitwise_lshift_as_twice_larger(
|
|
56
|
+
batch<T, A> const& self, batch_constant<T, A, Vs...>) noexcept
|
|
57
|
+
{
|
|
58
|
+
using T2 = widen_t<T>;
|
|
59
|
+
|
|
60
|
+
const auto self2 = bitwise_cast<T2>(self);
|
|
61
|
+
|
|
62
|
+
// Lower byte: shift as twice the size and mask bits flowing to higher byte.
|
|
63
|
+
constexpr auto shifts_lo = make_batch_constant<T2, select_stride<T, 0, 2, Vs...>, A>();
|
|
64
|
+
constexpr auto mask_lo = lsb_mask<T2>(8 * sizeof(T));
|
|
65
|
+
const auto shifted_lo = bitwise_lshift(self2, shifts_lo);
|
|
66
|
+
constexpr auto batch_mask_lo = make_batch_constant<T2, mask_lo, A>();
|
|
67
|
+
const auto masked_lo = bitwise_and(shifted_lo, batch_mask_lo.as_batch());
|
|
68
|
+
|
|
69
|
+
// Higher byte: mask bits that would flow from lower byte and shift as twice the size.
|
|
70
|
+
constexpr auto shifts_hi = make_batch_constant<T2, select_stride<T, 1, 2, Vs...>, A>();
|
|
71
|
+
constexpr auto mask_hi = mask_lo << (8 * sizeof(T));
|
|
72
|
+
constexpr auto batch_mask_hi = make_batch_constant<T2, mask_hi, A>();
|
|
73
|
+
const auto masked_hi = bitwise_and(self2, batch_mask_hi.as_batch());
|
|
74
|
+
const auto shifted_hi = bitwise_lshift(masked_hi, shifts_hi);
|
|
75
|
+
|
|
76
|
+
return bitwise_cast<T>(bitwise_or(masked_lo, shifted_hi));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#endif
|