From 153ecb1069ba52277337e4bf68fccd8fe528605a Mon Sep 17 00:00:00 2001 From: lemire Date: Mon, 13 Mar 2023 19:27:57 +0000 Subject: [PATCH] deploy: 338224849db15a6a61eca51f449abe3feed37282 --- arm64_2bitmanipulation_8h_source.html | 150 ++++++++++++----------- haswell_2bitmanipulation_8h_source.html | 96 ++++++++------- icelake_2bitmanipulation_8h_source.html | 96 ++++++++------- navtreedata.js | 12 +- navtreeindex0.js | 10 +- navtreeindex1.js | 10 +- navtreeindex2.js | 12 +- navtreeindex3.js | 10 +- navtreeindex4.js | 16 +-- navtreeindex5.js | 10 +- portability_8h_source.html | 73 ++++++----- ppc64_2bitmanipulation_8h_source.html | 118 +++++++++--------- westmere_2bitmanipulation_8h_source.html | 118 +++++++++--------- 13 files changed, 382 insertions(+), 349 deletions(-) diff --git a/arm64_2bitmanipulation_8h_source.html b/arm64_2bitmanipulation_8h_source.html index 7d020c278..baa810838 100644 --- a/arm64_2bitmanipulation_8h_source.html +++ b/arm64_2bitmanipulation_8h_source.html @@ -102,80 +102,84 @@ $(document).ready(function(){initNavTree('arm64_2bitmanipulation_8h_source.html'
9 // but the algorithms do not end up using the returned value.
10 // Sadly, sanitizers are not smart enough to figure it out.
11 SIMDJSON_NO_SANITIZE_UNDEFINED
-
12 simdjson_inline int trailing_zeroes(uint64_t input_num) {
-
13 #ifdef SIMDJSON_REGULAR_VISUAL_STUDIO
-
14  unsigned long ret;
-
15  // Search the mask data from least significant bit (LSB)
-
16  // to the most significant bit (MSB) for a set bit (1).
-
17  _BitScanForward64(&ret, input_num);
-
18  return (int)ret;
-
19 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
-
20  return __builtin_ctzll(input_num);
-
21 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
-
22 }
-
23 
-
24 /* result might be undefined when input_num is zero */
-
25 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
-
26  return input_num & (input_num-1);
-
27 }
-
28 
-
29 /* result might be undefined when input_num is zero */
-
30 simdjson_inline int leading_zeroes(uint64_t input_num) {
-
31 #ifdef SIMDJSON_REGULAR_VISUAL_STUDIO
-
32  unsigned long leading_zero = 0;
-
33  // Search the mask data from most significant bit (MSB)
-
34  // to least significant bit (LSB) for a set bit (1).
-
35  if (_BitScanReverse64(&leading_zero, input_num))
-
36  return (int)(63 - leading_zero);
-
37  else
-
38  return 64;
-
39 #else
-
40  return __builtin_clzll(input_num);
-
41 #endif// SIMDJSON_REGULAR_VISUAL_STUDIO
-
42 }
-
43 
-
44 /* result might be undefined when input_num is zero */
-
45 simdjson_inline int count_ones(uint64_t input_num) {
-
46  return vaddv_u8(vcnt_u8(vcreate_u8(input_num)));
-
47 }
-
48 
-
49 
-
50 #if defined(__GNUC__) // catches clang and gcc
-
57 /*
-
58  * We use SIMDJSON_PREFER_REVERSE_BITS as a hint that algorithms that
-
59  * work well with bit reversal may use it.
-
60  */
-
61 #define SIMDJSON_PREFER_REVERSE_BITS 1
-
62 
-
63 /* reverse the bits */
-
64 simdjson_inline uint64_t reverse_bits(uint64_t input_num) {
-
65  uint64_t rev_bits;
-
66  __asm("rbit %0, %1" : "=r"(rev_bits) : "r"(input_num));
-
67  return rev_bits;
-
68 }
-
69 
-
76 SIMDJSON_NO_SANITIZE_UNDEFINED
-
77 simdjson_inline uint64_t zero_leading_bit(uint64_t rev_bits, int leading_zeroes) {
-
78  return rev_bits ^ (uint64_t(0x8000000000000000) >> leading_zeroes);
-
79 }
-
80 
-
81 #endif
-
82 
-
83 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *result) {
-
84 #ifdef SIMDJSON_REGULAR_VISUAL_STUDIO
-
85  *result = value1 + value2;
-
86  return *result < value1;
-
87 #else
-
88  return __builtin_uaddll_overflow(value1, value2,
-
89  reinterpret_cast<unsigned long long *>(result));
-
90 #endif
-
91 }
-
92 
-
93 } // unnamed namespace
-
94 } // namespace SIMDJSON_IMPLEMENTATION
-
95 } // namespace simdjson
+
12 // This function can be used safely even if not all bytes have been
+
13 // initialized.
+
14 // See issue https://github.com/simdjson/simdjson/issues/1965
+
15 SIMDJSON_NO_SANITIZE_MEMORY
+
16 simdjson_inline int trailing_zeroes(uint64_t input_num) {
+
17 #ifdef SIMDJSON_REGULAR_VISUAL_STUDIO
+
18  unsigned long ret;
+
19  // Search the mask data from least significant bit (LSB)
+
20  // to the most significant bit (MSB) for a set bit (1).
+
21  _BitScanForward64(&ret, input_num);
+
22  return (int)ret;
+
23 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
+
24  return __builtin_ctzll(input_num);
+
25 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
+
26 }
+
27 
+
28 /* result might be undefined when input_num is zero */
+
29 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
+
30  return input_num & (input_num-1);
+
31 }
+
32 
+
33 /* result might be undefined when input_num is zero */
+
34 simdjson_inline int leading_zeroes(uint64_t input_num) {
+
35 #ifdef SIMDJSON_REGULAR_VISUAL_STUDIO
+
36  unsigned long leading_zero = 0;
+
37  // Search the mask data from most significant bit (MSB)
+
38  // to least significant bit (LSB) for a set bit (1).
+
39  if (_BitScanReverse64(&leading_zero, input_num))
+
40  return (int)(63 - leading_zero);
+
41  else
+
42  return 64;
+
43 #else
+
44  return __builtin_clzll(input_num);
+
45 #endif// SIMDJSON_REGULAR_VISUAL_STUDIO
+
46 }
+
47 
+
48 /* result might be undefined when input_num is zero */
+
49 simdjson_inline int count_ones(uint64_t input_num) {
+
50  return vaddv_u8(vcnt_u8(vcreate_u8(input_num)));
+
51 }
+
52 
+
53 
+
54 #if defined(__GNUC__) // catches clang and gcc
+
61 /*
+
62  * We use SIMDJSON_PREFER_REVERSE_BITS as a hint that algorithms that
+
63  * work well with bit reversal may use it.
+
64  */
+
65 #define SIMDJSON_PREFER_REVERSE_BITS 1
+
66 
+
67 /* reverse the bits */
+
68 simdjson_inline uint64_t reverse_bits(uint64_t input_num) {
+
69  uint64_t rev_bits;
+
70  __asm("rbit %0, %1" : "=r"(rev_bits) : "r"(input_num));
+
71  return rev_bits;
+
72 }
+
73 
+
80 SIMDJSON_NO_SANITIZE_UNDEFINED
+
81 simdjson_inline uint64_t zero_leading_bit(uint64_t rev_bits, int leading_zeroes) {
+
82  return rev_bits ^ (uint64_t(0x8000000000000000) >> leading_zeroes);
+
83 }
+
84 
+
85 #endif
+
86 
+
87 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2, uint64_t *result) {
+
88 #ifdef SIMDJSON_REGULAR_VISUAL_STUDIO
+
89  *result = value1 + value2;
+
90  return *result < value1;
+
91 #else
+
92  return __builtin_uaddll_overflow(value1, value2,
+
93  reinterpret_cast<unsigned long long *>(result));
+
94 #endif
+
95 }
96 
-
97 #endif // SIMDJSON_ARM64_BITMANIPULATION_H
+
97 } // unnamed namespace
+
98 } // namespace SIMDJSON_IMPLEMENTATION
+
99 } // namespace simdjson
+
100 
+
101 #endif // SIMDJSON_ARM64_BITMANIPULATION_H
We want to support argument-dependent lookup (ADL).
diff --git a/haswell_2bitmanipulation_8h_source.html b/haswell_2bitmanipulation_8h_source.html index 278e4a3e6..e29d9257c 100644 --- a/haswell_2bitmanipulation_8h_source.html +++ b/haswell_2bitmanipulation_8h_source.html @@ -102,54 +102,58 @@ $(document).ready(function(){initNavTree('haswell_2bitmanipulation_8h_source.htm
9 // but the algorithms do not end up using the returned value.
10 // Sadly, sanitizers are not smart enough to figure it out.
11 SIMDJSON_NO_SANITIZE_UNDEFINED
-
12 simdjson_inline int trailing_zeroes(uint64_t input_num) {
-
13 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
14  return (int)_tzcnt_u64(input_num);
-
15 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
-
17  // You might expect the next line to be equivalent to
-
18  // return (int)_tzcnt_u64(input_num);
-
19  // but the generated code differs and might be less efficient?
-
21  return __builtin_ctzll(input_num);
-
22 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
-
23 }
-
24 
-
25 /* result might be undefined when input_num is zero */
-
26 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
-
27  return _blsr_u64(input_num);
-
28 }
-
29 
-
30 /* result might be undefined when input_num is zero */
-
31 simdjson_inline int leading_zeroes(uint64_t input_num) {
-
32  return int(_lzcnt_u64(input_num));
-
33 }
-
34 
-
35 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
36 simdjson_inline unsigned __int64 count_ones(uint64_t input_num) {
-
37  // note: we do not support legacy 32-bit Windows
-
38  return __popcnt64(input_num);// Visual Studio wants two underscores
-
39 }
-
40 #else
-
41 simdjson_inline long long int count_ones(uint64_t input_num) {
-
42  return _popcnt64(input_num);
+
12 // This function can be used safely even if not all bytes have been
+
13 // initialized.
+
14 // See issue https://github.com/simdjson/simdjson/issues/1965
+
15 SIMDJSON_NO_SANITIZE_MEMORY
+
16 simdjson_inline int trailing_zeroes(uint64_t input_num) {
+
17 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
18  return (int)_tzcnt_u64(input_num);
+
19 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
+
21  // You might expect the next line to be equivalent to
+
22  // return (int)_tzcnt_u64(input_num);
+
23  // but the generated code differs and might be less efficient?
+
25  return __builtin_ctzll(input_num);
+
26 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
+
27 }
+
28 
+
29 /* result might be undefined when input_num is zero */
+
30 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
+
31  return _blsr_u64(input_num);
+
32 }
+
33 
+
34 /* result might be undefined when input_num is zero */
+
35 simdjson_inline int leading_zeroes(uint64_t input_num) {
+
36  return int(_lzcnt_u64(input_num));
+
37 }
+
38 
+
39 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
40 simdjson_inline unsigned __int64 count_ones(uint64_t input_num) {
+
41  // note: we do not support legacy 32-bit Windows
+
42  return __popcnt64(input_num);// Visual Studio wants two underscores
43 }
-
44 #endif
-
45 
-
46 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
-
47  uint64_t *result) {
-
48 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
49  return _addcarry_u64(0, value1, value2,
-
50  reinterpret_cast<unsigned __int64 *>(result));
-
51 #else
-
52  return __builtin_uaddll_overflow(value1, value2,
-
53  reinterpret_cast<unsigned long long *>(result));
-
54 #endif
-
55 }
-
56 
-
57 } // unnamed namespace
-
58 } // namespace SIMDJSON_IMPLEMENTATION
-
59 } // namespace simdjson
+
44 #else
+
45 simdjson_inline long long int count_ones(uint64_t input_num) {
+
46  return _popcnt64(input_num);
+
47 }
+
48 #endif
+
49 
+
50 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
+
51  uint64_t *result) {
+
52 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
53  return _addcarry_u64(0, value1, value2,
+
54  reinterpret_cast<unsigned __int64 *>(result));
+
55 #else
+
56  return __builtin_uaddll_overflow(value1, value2,
+
57  reinterpret_cast<unsigned long long *>(result));
+
58 #endif
+
59 }
60 
-
61 #endif // SIMDJSON_HASWELL_BITMANIPULATION_H
+
61 } // unnamed namespace
+
62 } // namespace SIMDJSON_IMPLEMENTATION
+
63 } // namespace simdjson
+
64 
+
65 #endif // SIMDJSON_HASWELL_BITMANIPULATION_H
We want to support argument-dependent lookup (ADL).
diff --git a/icelake_2bitmanipulation_8h_source.html b/icelake_2bitmanipulation_8h_source.html index 843206f14..05ba923f0 100644 --- a/icelake_2bitmanipulation_8h_source.html +++ b/icelake_2bitmanipulation_8h_source.html @@ -102,54 +102,58 @@ $(document).ready(function(){initNavTree('icelake_2bitmanipulation_8h_source.htm
9 // but the algorithms do not end up using the returned value.
10 // Sadly, sanitizers are not smart enough to figure it out.
11 SIMDJSON_NO_SANITIZE_UNDEFINED
-
12 simdjson_inline int trailing_zeroes(uint64_t input_num) {
-
13 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
14  return (int)_tzcnt_u64(input_num);
-
15 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
-
17  // You might expect the next line to be equivalent to
-
18  // return (int)_tzcnt_u64(input_num);
-
19  // but the generated code differs and might be less efficient?
-
21  return __builtin_ctzll(input_num);
-
22 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
-
23 }
-
24 
-
25 /* result might be undefined when input_num is zero */
-
26 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
-
27  return _blsr_u64(input_num);
-
28 }
-
29 
-
30 /* result might be undefined when input_num is zero */
-
31 simdjson_inline int leading_zeroes(uint64_t input_num) {
-
32  return int(_lzcnt_u64(input_num));
-
33 }
-
34 
-
35 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
36 simdjson_inline unsigned __int64 count_ones(uint64_t input_num) {
-
37  // note: we do not support legacy 32-bit Windows
-
38  return __popcnt64(input_num);// Visual Studio wants two underscores
-
39 }
-
40 #else
-
41 simdjson_inline long long int count_ones(uint64_t input_num) {
-
42  return _popcnt64(input_num);
+
12 // This function can be used safely even if not all bytes have been
+
13 // initialized.
+
14 // See issue https://github.com/simdjson/simdjson/issues/1965
+
15 SIMDJSON_NO_SANITIZE_MEMORY
+
16 simdjson_inline int trailing_zeroes(uint64_t input_num) {
+
17 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
18  return (int)_tzcnt_u64(input_num);
+
19 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
+
21  // You might expect the next line to be equivalent to
+
22  // return (int)_tzcnt_u64(input_num);
+
23  // but the generated code differs and might be less efficient?
+
25  return __builtin_ctzll(input_num);
+
26 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
+
27 }
+
28 
+
29 /* result might be undefined when input_num is zero */
+
30 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
+
31  return _blsr_u64(input_num);
+
32 }
+
33 
+
34 /* result might be undefined when input_num is zero */
+
35 simdjson_inline int leading_zeroes(uint64_t input_num) {
+
36  return int(_lzcnt_u64(input_num));
+
37 }
+
38 
+
39 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
40 simdjson_inline unsigned __int64 count_ones(uint64_t input_num) {
+
41  // note: we do not support legacy 32-bit Windows
+
42  return __popcnt64(input_num);// Visual Studio wants two underscores
43 }
-
44 #endif
-
45 
-
46 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
-
47  uint64_t *result) {
-
48 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
49  return _addcarry_u64(0, value1, value2,
-
50  reinterpret_cast<unsigned __int64 *>(result));
-
51 #else
-
52  return __builtin_uaddll_overflow(value1, value2,
-
53  reinterpret_cast<unsigned long long *>(result));
-
54 #endif
-
55 }
-
56 
-
57 } // unnamed namespace
-
58 } // namespace SIMDJSON_IMPLEMENTATION
-
59 } // namespace simdjson
+
44 #else
+
45 simdjson_inline long long int count_ones(uint64_t input_num) {
+
46  return _popcnt64(input_num);
+
47 }
+
48 #endif
+
49 
+
50 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
+
51  uint64_t *result) {
+
52 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
53  return _addcarry_u64(0, value1, value2,
+
54  reinterpret_cast<unsigned __int64 *>(result));
+
55 #else
+
56  return __builtin_uaddll_overflow(value1, value2,
+
57  reinterpret_cast<unsigned long long *>(result));
+
58 #endif
+
59 }
60 
-
61 #endif // SIMDJSON_ICELAKE_BITMANIPULATION_H
+
61 } // unnamed namespace
+
62 } // namespace SIMDJSON_IMPLEMENTATION
+
63 } // namespace simdjson
+
64 
+
65 #endif // SIMDJSON_ICELAKE_BITMANIPULATION_H
We want to support argument-dependent lookup (ADL).
diff --git a/navtreedata.js b/navtreedata.js index e1a972cb7..14b952fd1 100644 --- a/navtreedata.js +++ b/navtreedata.js @@ -183,12 +183,12 @@ var NAVTREE = var NAVTREEINDEX = [ -"annotated.html", -"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#affa38e7fd0778672e7dd02916a97ad21", -"classsimdjson_1_1dom_1_1object_1_1iterator.html#a951609ca7a164b499ff19adbe2de7983", -"logger-inl_8h.html#ab8b9add577d4aba4fc244fa5a5bcb219", -"parsedjson_8h_source.html", -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser_01_4.html" +"", +"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae3d80f8e7f31c319fe6ee09c0860df83", +"classsimdjson_1_1dom_1_1object_1_1iterator.html#a688f6c7f451602bb3385a93252c0828a", +"logger-inl_8h.html#a92b499d3d191a02e913f90de4f641e2e", +"padded__string_8h_source.html", +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#a8362f620df4f825553c777ded202b97d" ]; var SYNCONMSG = 'click to disable panel synchronisation'; diff --git a/navtreeindex0.js b/navtreeindex0.js index 453a6323a..d9daac690 100644 --- a/navtreeindex0.js +++ b/navtreeindex0.js @@ -1,5 +1,9 @@ var NAVTREEINDEX0 = { +"":[10,0,0,0], +"":[10,0,0,1], +"":[10,0,0,1,0,0], +"":[10,0,1], "annotated.html":[11,0], "arm64_2begin_8h_source.html":[12,0,0,0,0,0], "arm64_2bitmanipulation_8h_source.html":[12,0,0,0,0,1], @@ -245,9 +249,5 @@ var NAVTREEINDEX0 = "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ad742392a9223e096f1be16b7bbf20ca8":[11,0,0,1,0,7,6], "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#adbe7322f665109b9816c5bcb9c10a9cb":[11,0,0,1,0,7,10], "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#add102ee85423a75e22e4d7ca9a3eaacd":[11,0,0,1,0,7,4], -"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae0bc6b9803e0c989e9defaf3edcaaae4":[11,0,0,1,0,7,16], -"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae3d80f8e7f31c319fe6ee09c0860df83":[11,0,0,1,0,7,2], -"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae5cda98fa74051d037c0c444c67efb15":[11,0,0,1,0,7,19], -"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aeb4a70edd1808f36210460ed410e8dae":[11,0,0,1,0,7,3], -"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aef6872e07743217fe2e2abe790a21d4c":[11,0,0,1,0,7,5] +"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae0bc6b9803e0c989e9defaf3edcaaae4":[11,0,0,1,0,7,16] }; diff --git a/navtreeindex1.js b/navtreeindex1.js index 6039910a3..5c710760e 100644 --- a/navtreeindex1.js +++ b/navtreeindex1.js @@ -1,5 +1,9 @@ var NAVTREEINDEX1 = { +"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae3d80f8e7f31c319fe6ee09c0860df83":[11,0,0,1,0,7,2], +"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#ae5cda98fa74051d037c0c444c67efb15":[11,0,0,1,0,7,19], +"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aeb4a70edd1808f36210460ed410e8dae":[11,0,0,1,0,7,3], +"classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#aef6872e07743217fe2e2abe790a21d4c":[11,0,0,1,0,7,5], "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object.html#affa38e7fd0778672e7dd02916a97ad21":[11,0,0,1,0,7,9], "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator.html":[11,0,0,1,0,8], "classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator.html#a3d4dcacb8171b99f783396bb6a337c65":[11,0,0,1,0,8,5], @@ -245,9 +249,5 @@ var NAVTREEINDEX1 = "classsimdjson_1_1dom_1_1object_1_1iterator.html#a498ffa7fca4164634f87ff2ef0905f8b":[11,0,0,0,4,0,14], "classsimdjson_1_1dom_1_1object_1_1iterator.html#a54a99dcf9c422d5c24f3c570b6d9b6e4":[11,0,0,0,4,0,5], "classsimdjson_1_1dom_1_1object_1_1iterator.html#a5ad1b60fd5df56d9fdb8bce1e08de88f":[11,0,0,0,4,0,8], -"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5c80355d967cce16eab942a8d8351c7b":[11,0,0,0,4,0,2], -"classsimdjson_1_1dom_1_1object_1_1iterator.html#a688f6c7f451602bb3385a93252c0828a":[11,0,0,0,4,0,10], -"classsimdjson_1_1dom_1_1object_1_1iterator.html#a6d335de77b8c5b731566e48f6cacd95d":[11,0,0,0,4,0,7], -"classsimdjson_1_1dom_1_1object_1_1iterator.html#a7b4a7d3017744fec3aa4252967f73204":[11,0,0,0,4,0,16], -"classsimdjson_1_1dom_1_1object_1_1iterator.html#a83b3c467632c017400f95ff05d2367b3":[11,0,0,0,4,0,12] +"classsimdjson_1_1dom_1_1object_1_1iterator.html#a5c80355d967cce16eab942a8d8351c7b":[11,0,0,0,4,0,2] }; diff --git a/navtreeindex2.js b/navtreeindex2.js index 33443d871..d7b78031e 100644 --- a/navtreeindex2.js +++ b/navtreeindex2.js @@ -1,5 +1,9 @@ var NAVTREEINDEX2 = { +"classsimdjson_1_1dom_1_1object_1_1iterator.html#a688f6c7f451602bb3385a93252c0828a":[11,0,0,0,4,0,10], +"classsimdjson_1_1dom_1_1object_1_1iterator.html#a6d335de77b8c5b731566e48f6cacd95d":[11,0,0,0,4,0,7], +"classsimdjson_1_1dom_1_1object_1_1iterator.html#a7b4a7d3017744fec3aa4252967f73204":[11,0,0,0,4,0,16], +"classsimdjson_1_1dom_1_1object_1_1iterator.html#a83b3c467632c017400f95ff05d2367b3":[11,0,0,0,4,0,12], "classsimdjson_1_1dom_1_1object_1_1iterator.html#a951609ca7a164b499ff19adbe2de7983":[11,0,0,0,4,0,4], "classsimdjson_1_1dom_1_1object_1_1iterator.html#a9f49fe89534f63d3d2543d5d4bad3180":[11,0,0,0,4,0,1], "classsimdjson_1_1dom_1_1object_1_1iterator.html#aa26738ad08b7de3be4621a75863118ab":[11,0,0,0,4,0,11], @@ -128,8 +132,8 @@ var NAVTREEINDEX2 = "functions_d.html":[11,3,0,3], "functions_e.html":[11,3,0,4], "functions_f.html":[11,3,0,5], -"functions_func.html":[11,3,1], "functions_func.html":[11,3,1,0], +"functions_func.html":[11,3,1], "functions_func_b.html":[11,3,1,1], "functions_func_c.html":[11,3,1,2], "functions_func_d.html":[11,3,1,3], @@ -245,9 +249,5 @@ var NAVTREEINDEX2 = "logger-inl_8h.html#a66e3122a7ae01bfe5f81ecb1bf1814cc":[10,0,0,1,0,0,4], "logger-inl_8h.html#a6ca1434e6fe03e97dbc88360cc6ea5db":[10,0,0,1,0,0,1], "logger-inl_8h.html#a720bb462b108c1f9bcaa02cdcdfe6546":[10,0,0,1,0,0,12], -"logger-inl_8h.html#a7577e5a0dcaf23edf36d162959680a7c":[10,0,0,1,0,0,8], -"logger-inl_8h.html#a92b499d3d191a02e913f90de4f641e2e":[10,0,0,1,0,0,10], -"logger-inl_8h.html#aa220611a86e2a544368f650b7f7315fb":[10,0,0,1,0,0,3], -"logger-inl_8h.html#aaa4c1a2ef6eb08bb02a8ea6e49d2a786":[10,0,0,1,0,0,11], -"logger-inl_8h.html#ab8082fd58a3d7e115016a3fc52ee8936":[10,0,0,1,0,0,0] +"logger-inl_8h.html#a7577e5a0dcaf23edf36d162959680a7c":[10,0,0,1,0,0,8] }; diff --git a/navtreeindex3.js b/navtreeindex3.js index af8e48753..2cdf4dc7c 100644 --- a/navtreeindex3.js +++ b/navtreeindex3.js @@ -1,5 +1,9 @@ var NAVTREEINDEX3 = { +"logger-inl_8h.html#a92b499d3d191a02e913f90de4f641e2e":[10,0,0,1,0,0,10], +"logger-inl_8h.html#aa220611a86e2a544368f650b7f7315fb":[10,0,0,1,0,0,3], +"logger-inl_8h.html#aaa4c1a2ef6eb08bb02a8ea6e49d2a786":[10,0,0,1,0,0,11], +"logger-inl_8h.html#ab8082fd58a3d7e115016a3fc52ee8936":[10,0,0,1,0,0,0], "logger-inl_8h.html#ab8b9add577d4aba4fc244fa5a5bcb219":[10,0,0,1,0,0,7], "logger-inl_8h.html#abaf0200be757924fd5a89834e3b758f0":[10,0,0,1,0,0,13], "logger-inl_8h.html#ad5975f8a32d2daea904160b7ac6fd9cc":[10,0,0,1,0,0,9], @@ -245,9 +249,5 @@ var NAVTREEINDEX3 = "object__iterator_8h_source.html":[12,0,0,0,3,0,19], "ondemand-inl_8h_source.html":[12,0,0,0,3,7], "ondemand_8h_source.html":[12,0,0,0,3,8], -"padded__string-inl_8h_source.html":[12,0,0,0,26], -"padded__string_8h_source.html":[12,0,0,0,27], -"padded__string__view-inl_8h_source.html":[12,0,0,0,28], -"padded__string__view_8h_source.html":[12,0,0,0,29], -"pages.html":[] +"padded__string-inl_8h_source.html":[12,0,0,0,26] }; diff --git a/navtreeindex4.js b/navtreeindex4.js index f92efe82b..abcf8687d 100644 --- a/navtreeindex4.js +++ b/navtreeindex4.js @@ -1,5 +1,9 @@ var NAVTREEINDEX4 = { +"padded__string_8h_source.html":[12,0,0,0,27], +"padded__string__view-inl_8h_source.html":[12,0,0,0,28], +"padded__string__view_8h_source.html":[12,0,0,0,29], +"pages.html":[], "parsedjson_8h_source.html":[12,0,0,0,1,11], "parsedjson__iterator-inl_8h_source.html":[12,0,0,0,1,12], "parsedjson__iterator_8h_source.html":[12,0,0,0,1,13], @@ -124,8 +128,8 @@ var NAVTREEINDEX4 = "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a2d53b6aa5b0316e08cbc16e6f970d3c8":[11,0,0,10,32], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a32e9d2b26e7c85c77dc3cef0f812ca1b":[11,0,0,10,57], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a371fb9d9879782009c11e547ff79e869":[11,0,0,10,44], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a429242515e1139a04142c3f1aa5cbe68":[11,0,0,10,16], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a429242515e1139a04142c3f1aa5cbe68":[11,0,0,10,17], +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a429242515e1139a04142c3f1aa5cbe68":[11,0,0,10,16], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a458029a37b519f4594dc78812fee8657":[11,0,0,10,34], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a4762f6c497ac46d5c7a130b2f389156d":[11,0,0,10,46], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a50bddd1e9bc10caaabff8ff4d7eb903d":[11,0,0,10,48], @@ -135,8 +139,8 @@ var NAVTREEINDEX4 = "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a567b835f20e2f854f4303e83f4d3bd74":[11,0,0,10,12], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a59a47cbdb4c226a7d33e0315cce62984":[11,0,0,10,40], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a5a4d779ce258cac95b1799f16b49695b":[11,0,0,10,47], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a6024d17789cc49d3147445b3def018f6":[11,0,0,10,21], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a6024d17789cc49d3147445b3def018f6":[11,0,0,10,22], +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a6024d17789cc49d3147445b3def018f6":[11,0,0,10,21], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a61c56912d76a1a730e4cf9b5aea5d69f":[11,0,0,10,37], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a662ec28f78a9fcba046eaa4509efa6a3":[11,0,0,10,41], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#a696390da51f64f6955aa43484b2e8c41":[11,0,0,10,27], @@ -162,8 +166,8 @@ var NAVTREEINDEX4 = "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ad93b76ab3636d40ce75059e0f8653c6f":[11,0,0,10,7], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ada47799dcb5e64e43851d78d346b1d47":[11,0,0,10,24], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ada47799dcb5e64e43851d78d346b1d47":[11,0,0,10,23], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#adb70072b98e8c3c650ce695f3e928e66":[11,0,0,10,13], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#adb70072b98e8c3c650ce695f3e928e66":[11,0,0,10,15], +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#adb70072b98e8c3c650ce695f3e928e66":[11,0,0,10,13], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#ae69c9218f418dab3b1aafeb2b6504fab":[11,0,0,10,54], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#aecc254ac74f3ccd0704813be27c98470":[11,0,0,10,8], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document_01_4.html#aeda745db35d2b64a7956a70872242fcb":[11,0,0,10,43], @@ -245,9 +249,5 @@ var NAVTREEINDEX4 = "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#af882bb9212c81253b2f52ae763f1fab6":[11,0,0,16,3], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object_01_4.html#afd9f79244804cad8a3c12053c2e5da6f":[11,0,0,16,5], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html":[11,0,0,17], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#a7ca63da97cf96188a9041d6f27d9fe51":[11,0,0,17,1], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#a8362f620df4f825553c777ded202b97d":[11,0,0,17,0], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#aaa161d4006fe118c8a2125f861ac0f51":[11,0,0,17,2], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#acc81dc7722804c9fb5ec8d7020700d61":[11,0,0,17,3], -"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#ada1a67291efb7a0ef2ea45d86d17ec60":[11,0,0,17,4] +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#a7ca63da97cf96188a9041d6f27d9fe51":[11,0,0,17,1] }; diff --git a/navtreeindex5.js b/navtreeindex5.js index a7a6c42b0..d881aa9e6 100644 --- a/navtreeindex5.js +++ b/navtreeindex5.js @@ -1,5 +1,9 @@ var NAVTREEINDEX5 = { +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#a8362f620df4f825553c777ded202b97d":[11,0,0,17,0], +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#aaa161d4006fe118c8a2125f861ac0f51":[11,0,0,17,2], +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#acc81dc7722804c9fb5ec8d7020700d61":[11,0,0,17,3], +"structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1object__iterator_01_4.html#ada1a67291efb7a0ef2ea45d86d17ec60":[11,0,0,17,4], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser_01_4.html":[11,0,0,18], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1parser_01_4.html#ae42db86bd32544ab81e4996ae96da060":[11,0,0,18,0], "structsimdjson_1_1simdjson__result_3_01_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1raw__json__string_01_4.html":[11,0,0,19], @@ -136,9 +140,5 @@ var NAVTREEINDEX5 = "westmere_2numberparsing_8h_source.html":[12,0,0,0,9,6], "westmere_2simd_8h_source.html":[12,0,0,0,9,7], "westmere_2stringparsing_8h_source.html":[12,0,0,0,9,8], -"westmere_8h_source.html":[12,0,0,0,34], -"":[10,0,0,1], -"":[10,0,0,0], -"":[10,0,1], -"":[10,0,0,1,0,0] +"westmere_8h_source.html":[12,0,0,0,34] }; diff --git a/portability_8h_source.html b/portability_8h_source.html index be66dd161..ce182231e 100644 --- a/portability_8h_source.html +++ b/portability_8h_source.html @@ -231,38 +231,51 @@ $(document).ready(function(){initNavTree('portability_8h_source.html',''); initR
148 #define SIMDJSON_NO_SANITIZE_UNDEFINED
149 #endif
150 
-
151 #if SIMDJSON_VISUAL_STUDIO
-
152 // This is one case where we do not distinguish between
-
153 // regular visual studio and clang under visual studio.
-
154 // clang under Windows has _stricmp (like visual studio) but not strcasecmp (as clang normally has)
-
155 #define simdjson_strcasecmp _stricmp
-
156 #define simdjson_strncasecmp _strnicmp
-
157 #else
-
158 // The strcasecmp, strncasecmp, and strcasestr functions do not work with multibyte strings (e.g. UTF-8).
-
159 // So they are only useful for ASCII in our context.
-
160 // https://www.gnu.org/software/libunistring/manual/libunistring.html#char-_002a-strings
-
161 #define simdjson_strcasecmp strcasecmp
-
162 #define simdjson_strncasecmp strncasecmp
-
163 #endif
-
164 
-
165 #ifdef NDEBUG
-
166 
-
167 #if SIMDJSON_VISUAL_STUDIO
-
168 #define SIMDJSON_UNREACHABLE() __assume(0)
-
169 #define SIMDJSON_ASSUME(COND) __assume(COND)
+
151 
+
152 #if defined(__clang__) || defined(__GNUC__)
+
153 #if defined(__has_feature)
+
154 # if __has_feature(memory_sanitizer)
+
155 #define SIMDJSON_NO_SANITIZE_MEMORY __attribute__((no_sanitize("memory")))
+
156 # endif // if __has_feature(memory_sanitizer)
+
157 #endif // defined(__has_feature)
+
158 #endif
+
159 // make sure it is defined as 'nothing' if it is unapplicable.
+
160 #ifndef SIMDJSON_NO_SANITIZE_MEMORY
+
161 #define SIMDJSON_NO_SANITIZE_MEMORY
+
162 #endif
+
163 
+
164 #if SIMDJSON_VISUAL_STUDIO
+
165 // This is one case where we do not distinguish between
+
166 // regular visual studio and clang under visual studio.
+
167 // clang under Windows has _stricmp (like visual studio) but not strcasecmp (as clang normally has)
+
168 #define simdjson_strcasecmp _stricmp
+
169 #define simdjson_strncasecmp _strnicmp
170 #else
-
171 #define SIMDJSON_UNREACHABLE() __builtin_unreachable();
-
172 #define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
-
173 #endif
-
174 
-
175 #else // NDEBUG
-
176 
-
177 #define SIMDJSON_UNREACHABLE() assert(0);
-
178 #define SIMDJSON_ASSUME(COND) assert(COND)
+
171 // The strcasecmp, strncasecmp, and strcasestr functions do not work with multibyte strings (e.g. UTF-8).
+
172 // So they are only useful for ASCII in our context.
+
173 // https://www.gnu.org/software/libunistring/manual/libunistring.html#char-_002a-strings
+
174 #define simdjson_strcasecmp strcasecmp
+
175 #define simdjson_strncasecmp strncasecmp
+
176 #endif
+
177 
+
178 #ifdef NDEBUG
179 
-
180 #endif
-
181 
-
182 #endif // SIMDJSON_PORTABILITY_H
+
180 #if SIMDJSON_VISUAL_STUDIO
+
181 #define SIMDJSON_UNREACHABLE() __assume(0)
+
182 #define SIMDJSON_ASSUME(COND) __assume(COND)
+
183 #else
+
184 #define SIMDJSON_UNREACHABLE() __builtin_unreachable();
+
185 #define SIMDJSON_ASSUME(COND) do { if (!(COND)) __builtin_unreachable(); } while (0)
+
186 #endif
+
187 
+
188 #else // NDEBUG
+
189 
+
190 #define SIMDJSON_UNREACHABLE() assert(0);
+
191 #define SIMDJSON_ASSUME(COND) assert(COND)
+
192 
+
193 #endif
+
194 
+
195 #endif // SIMDJSON_PORTABILITY_H
diff --git a/ppc64_2bitmanipulation_8h_source.html b/ppc64_2bitmanipulation_8h_source.html index df5538338..7df75ae8e 100644 --- a/ppc64_2bitmanipulation_8h_source.html +++ b/ppc64_2bitmanipulation_8h_source.html @@ -102,65 +102,69 @@ $(document).ready(function(){initNavTree('ppc64_2bitmanipulation_8h_source.html'
9 // but the algorithms do not end up using the returned value.
10 // Sadly, sanitizers are not smart enough to figure it out.
11 SIMDJSON_NO_SANITIZE_UNDEFINED
-
12 simdjson_inline int trailing_zeroes(uint64_t input_num) {
-
13 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
14  unsigned long ret;
-
15  // Search the mask data from least significant bit (LSB)
-
16  // to the most significant bit (MSB) for a set bit (1).
-
17  _BitScanForward64(&ret, input_num);
-
18  return (int)ret;
-
19 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
-
20  return __builtin_ctzll(input_num);
-
21 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
-
22 }
-
23 
-
24 /* result might be undefined when input_num is zero */
-
25 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
-
26  return input_num & (input_num - 1);
-
27 }
-
28 
-
29 /* result might be undefined when input_num is zero */
-
30 simdjson_inline int leading_zeroes(uint64_t input_num) {
-
31 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
32  unsigned long leading_zero = 0;
-
33  // Search the mask data from most significant bit (MSB)
-
34  // to least significant bit (LSB) for a set bit (1).
-
35  if (_BitScanReverse64(&leading_zero, input_num))
-
36  return (int)(63 - leading_zero);
-
37  else
-
38  return 64;
-
39 #else
-
40  return __builtin_clzll(input_num);
-
41 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
-
42 }
-
43 
-
44 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
45 simdjson_inline int count_ones(uint64_t input_num) {
-
46  // note: we do not support legacy 32-bit Windows
-
47  return __popcnt64(input_num); // Visual Studio wants two underscores
-
48 }
-
49 #else
-
50 simdjson_inline int count_ones(uint64_t input_num) {
-
51  return __builtin_popcountll(input_num);
+
12 // This function can be used safely even if not all bytes have been
+
13 // initialized.
+
14 // See issue https://github.com/simdjson/simdjson/issues/1965
+
15 SIMDJSON_NO_SANITIZE_MEMORY
+
16 simdjson_inline int trailing_zeroes(uint64_t input_num) {
+
17 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
18  unsigned long ret;
+
19  // Search the mask data from least significant bit (LSB)
+
20  // to the most significant bit (MSB) for a set bit (1).
+
21  _BitScanForward64(&ret, input_num);
+
22  return (int)ret;
+
23 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
+
24  return __builtin_ctzll(input_num);
+
25 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
+
26 }
+
27 
+
28 /* result might be undefined when input_num is zero */
+
29 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
+
30  return input_num & (input_num - 1);
+
31 }
+
32 
+
33 /* result might be undefined when input_num is zero */
+
34 simdjson_inline int leading_zeroes(uint64_t input_num) {
+
35 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
36  unsigned long leading_zero = 0;
+
37  // Search the mask data from most significant bit (MSB)
+
38  // to least significant bit (LSB) for a set bit (1).
+
39  if (_BitScanReverse64(&leading_zero, input_num))
+
40  return (int)(63 - leading_zero);
+
41  else
+
42  return 64;
+
43 #else
+
44  return __builtin_clzll(input_num);
+
45 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
+
46 }
+
47 
+
48 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
49 simdjson_inline int count_ones(uint64_t input_num) {
+
50  // note: we do not support legacy 32-bit Windows
+
51  return __popcnt64(input_num); // Visual Studio wants two underscores
52 }
-
53 #endif
-
54 
-
55 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
-
56  uint64_t *result) {
-
57 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
58  *result = value1 + value2;
-
59  return *result < value1;
-
60 #else
-
61  return __builtin_uaddll_overflow(value1, value2,
-
62  reinterpret_cast<unsigned long long *>(result));
-
63 #endif
-
64 }
-
65 
-
66 } // unnamed namespace
-
67 } // namespace SIMDJSON_IMPLEMENTATION
-
68 } // namespace simdjson
+
53 #else
+
54 simdjson_inline int count_ones(uint64_t input_num) {
+
55  return __builtin_popcountll(input_num);
+
56 }
+
57 #endif
+
58 
+
59 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
+
60  uint64_t *result) {
+
61 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
62  *result = value1 + value2;
+
63  return *result < value1;
+
64 #else
+
65  return __builtin_uaddll_overflow(value1, value2,
+
66  reinterpret_cast<unsigned long long *>(result));
+
67 #endif
+
68 }
69 
-
70 #endif // SIMDJSON_PPC64_BITMANIPULATION_H
+
70 } // unnamed namespace
+
71 } // namespace SIMDJSON_IMPLEMENTATION
+
72 } // namespace simdjson
+
73 
+
74 #endif // SIMDJSON_PPC64_BITMANIPULATION_H
We want to support argument-dependent lookup (ADL).
diff --git a/westmere_2bitmanipulation_8h_source.html b/westmere_2bitmanipulation_8h_source.html index 65a210515..12dea62f4 100644 --- a/westmere_2bitmanipulation_8h_source.html +++ b/westmere_2bitmanipulation_8h_source.html @@ -102,65 +102,69 @@ $(document).ready(function(){initNavTree('westmere_2bitmanipulation_8h_source.ht
9 // but the algorithms do not end up using the returned value.
10 // Sadly, sanitizers are not smart enough to figure it out.
11 SIMDJSON_NO_SANITIZE_UNDEFINED
-
12 simdjson_inline int trailing_zeroes(uint64_t input_num) {
-
13 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
14  unsigned long ret;
-
15  // Search the mask data from least significant bit (LSB)
-
16  // to the most significant bit (MSB) for a set bit (1).
-
17  _BitScanForward64(&ret, input_num);
-
18  return (int)ret;
-
19 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
-
20  return __builtin_ctzll(input_num);
-
21 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
-
22 }
-
23 
-
24 /* result might be undefined when input_num is zero */
-
25 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
-
26  return input_num & (input_num-1);
-
27 }
-
28 
-
29 /* result might be undefined when input_num is zero */
-
30 simdjson_inline int leading_zeroes(uint64_t input_num) {
-
31 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
32  unsigned long leading_zero = 0;
-
33  // Search the mask data from most significant bit (MSB)
-
34  // to least significant bit (LSB) for a set bit (1).
-
35  if (_BitScanReverse64(&leading_zero, input_num))
-
36  return (int)(63 - leading_zero);
-
37  else
-
38  return 64;
-
39 #else
-
40  return __builtin_clzll(input_num);
-
41 #endif// SIMDJSON_REGULAR_VISUAL_STUDIO
-
42 }
-
43 
-
44 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
45 simdjson_inline unsigned __int64 count_ones(uint64_t input_num) {
-
46  // note: we do not support legacy 32-bit Windows
-
47  return __popcnt64(input_num);// Visual Studio wants two underscores
-
48 }
-
49 #else
-
50 simdjson_inline long long int count_ones(uint64_t input_num) {
-
51  return _popcnt64(input_num);
+
12 // This function can be used safely even if not all bytes have been
+
13 // initialized.
+
14 // See issue https://github.com/simdjson/simdjson/issues/1965
+
15 SIMDJSON_NO_SANITIZE_MEMORY
+
16 simdjson_inline int trailing_zeroes(uint64_t input_num) {
+
17 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
18  unsigned long ret;
+
19  // Search the mask data from least significant bit (LSB)
+
20  // to the most significant bit (MSB) for a set bit (1).
+
21  _BitScanForward64(&ret, input_num);
+
22  return (int)ret;
+
23 #else // SIMDJSON_REGULAR_VISUAL_STUDIO
+
24  return __builtin_ctzll(input_num);
+
25 #endif // SIMDJSON_REGULAR_VISUAL_STUDIO
+
26 }
+
27 
+
28 /* result might be undefined when input_num is zero */
+
29 simdjson_inline uint64_t clear_lowest_bit(uint64_t input_num) {
+
30  return input_num & (input_num-1);
+
31 }
+
32 
+
33 /* result might be undefined when input_num is zero */
+
34 simdjson_inline int leading_zeroes(uint64_t input_num) {
+
35 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
36  unsigned long leading_zero = 0;
+
37  // Search the mask data from most significant bit (MSB)
+
38  // to least significant bit (LSB) for a set bit (1).
+
39  if (_BitScanReverse64(&leading_zero, input_num))
+
40  return (int)(63 - leading_zero);
+
41  else
+
42  return 64;
+
43 #else
+
44  return __builtin_clzll(input_num);
+
45 #endif// SIMDJSON_REGULAR_VISUAL_STUDIO
+
46 }
+
47 
+
48 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
49 simdjson_inline unsigned __int64 count_ones(uint64_t input_num) {
+
50  // note: we do not support legacy 32-bit Windows
+
51  return __popcnt64(input_num);// Visual Studio wants two underscores
52 }
-
53 #endif
-
54 
-
55 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
-
56  uint64_t *result) {
-
57 #if SIMDJSON_REGULAR_VISUAL_STUDIO
-
58  return _addcarry_u64(0, value1, value2,
-
59  reinterpret_cast<unsigned __int64 *>(result));
-
60 #else
-
61  return __builtin_uaddll_overflow(value1, value2,
-
62  reinterpret_cast<unsigned long long *>(result));
-
63 #endif
-
64 }
-
65 
-
66 } // unnamed namespace
-
67 } // namespace SIMDJSON_IMPLEMENTATION
-
68 } // namespace simdjson
+
53 #else
+
54 simdjson_inline long long int count_ones(uint64_t input_num) {
+
55  return _popcnt64(input_num);
+
56 }
+
57 #endif
+
58 
+
59 simdjson_inline bool add_overflow(uint64_t value1, uint64_t value2,
+
60  uint64_t *result) {
+
61 #if SIMDJSON_REGULAR_VISUAL_STUDIO
+
62  return _addcarry_u64(0, value1, value2,
+
63  reinterpret_cast<unsigned __int64 *>(result));
+
64 #else
+
65  return __builtin_uaddll_overflow(value1, value2,
+
66  reinterpret_cast<unsigned long long *>(result));
+
67 #endif
+
68 }
69 
-
70 #endif // SIMDJSON_WESTMERE_BITMANIPULATION_H
+
70 } // unnamed namespace
+
71 } // namespace SIMDJSON_IMPLEMENTATION
+
72 } // namespace simdjson
+
73 
+
74 #endif // SIMDJSON_WESTMERE_BITMANIPULATION_H
We want to support argument-dependent lookup (ADL).