ycpp 0.1.0__cp315-cp315-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.cp315-win_arm64.lib +0 -0
- ycpp/_ycpp.cp315-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,91 @@
|
|
|
1
|
+
|
|
2
|
+
#ifndef FASTFLOAT_FAST_FLOAT_H
|
|
3
|
+
#define FASTFLOAT_FAST_FLOAT_H
|
|
4
|
+
|
|
5
|
+
#include "float_common.h"
|
|
6
|
+
|
|
7
|
+
namespace fast_float {
|
|
8
|
+
/**
|
|
9
|
+
* This function parses the character sequence [first,last) for a number. It
|
|
10
|
+
* parses floating-point numbers expecting a locale-indepent format equivalent
|
|
11
|
+
* to what is used by std::strtod in the default ("C") locale. The resulting
|
|
12
|
+
* floating-point value is the closest floating-point values (using either float
|
|
13
|
+
* or double), using the "round to even" convention for values that would
|
|
14
|
+
* otherwise fall right in-between two values. That is, we provide exact parsing
|
|
15
|
+
* according to the IEEE standard.
|
|
16
|
+
*
|
|
17
|
+
* Given a successful parse, the pointer (`ptr`) in the returned value is set to
|
|
18
|
+
* point right after the parsed number, and the `value` referenced is set to the
|
|
19
|
+
* parsed value. In case of error, the returned `ec` contains a representative
|
|
20
|
+
* error, otherwise the default (`std::errc()`) value is stored.
|
|
21
|
+
*
|
|
22
|
+
* The implementation does not throw and does not allocate memory (e.g., with
|
|
23
|
+
* `new` or `malloc`).
|
|
24
|
+
*
|
|
25
|
+
* Like the C++17 standard, the `fast_float::from_chars` functions take an
|
|
26
|
+
* optional last argument of the type `fast_float::chars_format`. It is a bitset
|
|
27
|
+
* value: we check whether `fmt & fast_float::chars_format::fixed` and `fmt &
|
|
28
|
+
* fast_float::chars_format::scientific` are set to determine whether we allow
|
|
29
|
+
* the fixed point and scientific notation respectively. The default is
|
|
30
|
+
* `fast_float::chars_format::general` which allows both `fixed` and
|
|
31
|
+
* `scientific`.
|
|
32
|
+
*/
|
|
33
|
+
template <typename T, typename UC = char,
|
|
34
|
+
typename = FASTFLOAT_ENABLE_IF(is_supported_float_type<T>::value)>
|
|
35
|
+
FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
|
|
36
|
+
from_chars(UC const *first, UC const *last, T &value,
|
|
37
|
+
chars_format fmt = chars_format::general) noexcept;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Like from_chars, but accepts an `options` argument to govern number parsing.
|
|
41
|
+
* Both for floating-point types and integer types.
|
|
42
|
+
*/
|
|
43
|
+
template <typename T, typename UC = char>
|
|
44
|
+
FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
|
|
45
|
+
from_chars_advanced(UC const *first, UC const *last, T &value,
|
|
46
|
+
parse_options_t<UC> options) noexcept;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* This function multiplies an integer number by a power of 10 and returns
|
|
50
|
+
* the result as a double precision floating-point value that is correctly
|
|
51
|
+
* rounded. The resulting floating-point value is the closest floating-point
|
|
52
|
+
* value, using the "round to nearest, tie to even" convention for values that
|
|
53
|
+
* would otherwise fall right in-between two values. That is, we provide exact
|
|
54
|
+
* conversion according to the IEEE standard.
|
|
55
|
+
*
|
|
56
|
+
* On overflow infinity is returned, on underflow 0 is returned.
|
|
57
|
+
*
|
|
58
|
+
* The implementation does not throw and does not allocate memory (e.g., with
|
|
59
|
+
* `new` or `malloc`).
|
|
60
|
+
*/
|
|
61
|
+
FASTFLOAT_CONSTEXPR20 inline double
|
|
62
|
+
integer_times_pow10(uint64_t mantissa, int decimal_exponent) noexcept;
|
|
63
|
+
FASTFLOAT_CONSTEXPR20 inline double
|
|
64
|
+
integer_times_pow10(int64_t mantissa, int decimal_exponent) noexcept;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* This function is a template overload of `integer_times_pow10()`
|
|
68
|
+
* that returns a floating-point value of type `T` that is one of
|
|
69
|
+
* supported floating-point types (e.g. `double`, `float`).
|
|
70
|
+
*/
|
|
71
|
+
template <typename T>
|
|
72
|
+
FASTFLOAT_CONSTEXPR20
|
|
73
|
+
typename std::enable_if<is_supported_float_type<T>::value, T>::type
|
|
74
|
+
integer_times_pow10(uint64_t mantissa, int decimal_exponent) noexcept;
|
|
75
|
+
template <typename T>
|
|
76
|
+
FASTFLOAT_CONSTEXPR20
|
|
77
|
+
typename std::enable_if<is_supported_float_type<T>::value, T>::type
|
|
78
|
+
integer_times_pow10(int64_t mantissa, int decimal_exponent) noexcept;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* from_chars for integer types.
|
|
82
|
+
*/
|
|
83
|
+
template <typename T, typename UC = char,
|
|
84
|
+
typename = FASTFLOAT_ENABLE_IF(is_supported_integer_type<T>::value)>
|
|
85
|
+
FASTFLOAT_CONSTEXPR20 from_chars_result_t<UC>
|
|
86
|
+
from_chars(UC const *first, UC const *last, T &value, int base = 10) noexcept;
|
|
87
|
+
|
|
88
|
+
} // namespace fast_float
|
|
89
|
+
|
|
90
|
+
#include "parse_number.h"
|
|
91
|
+
#endif // FASTFLOAT_FAST_FLOAT_H
|