File tree Expand file tree Collapse file tree 7 files changed +29
-10
lines changed
include/opentelemetry/sdk/common Expand file tree Collapse file tree 7 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 33
44#pragma once
55
6+ #include < cstddef>
67#include < cstdint>
7- #include < initializer_list>
8- #include < map>
98#include < string>
10- #include < unordered_map>
11- #include < utility>
129#include < vector>
1310
1411#include " opentelemetry/common/attribute_value.h"
1512#include " opentelemetry/common/key_value_iterable.h"
13+ #include " opentelemetry/nostd/function_ref.h"
14+ #include " opentelemetry/nostd/span.h"
1615#include " opentelemetry/nostd/string_view.h"
17- #include " opentelemetry/nostd/variant.h"
1816#include " opentelemetry/sdk/common/attribute_utils.h"
1917#include " opentelemetry/version.h"
2018
Original file line number Diff line number Diff line change 33
44#include " opentelemetry/sdk/common/attribute_validity.h"
55
6+ #include < map>
7+ #include < ostream>
8+ #include < unordered_map>
69#include < unordered_set>
10+ #include < utility>
711
12+ #include " opentelemetry/nostd/variant.h"
813#include " opentelemetry/sdk/common/global_log_handler.h"
914#include " opentelemetry/version.h"
1015
Original file line number Diff line number Diff line change 1- // Copyright 2023 Google LLC
1+ // Copyright The OpenTelemetry Authors
2+ // SPDX-License-Identifier: Apache-2.0
23//
34// Use of this source code is governed by an MIT-style
45// license that can be found in the LICENSE file or at
1718 */
1819#include " src/common/internal/utf8_range/utf8_range.h"
1920
20- #include < stddef.h>
2121#include < stdint.h>
2222#include < string.h>
2323
24+ #include " opentelemetry/version.h"
25+
2426#if defined(__GNUC__)
2527# define FORCE_INLINE_ATTR __attribute__ ((always_inline)) inline
2628#elif defined(_MSC_VER)
@@ -42,14 +44,19 @@ static FORCE_INLINE_ATTR uint64_t utf8_range_UnalignedLoad64(const void *p)
4244 return t;
4345}
4446
45- static FORCE_INLINE_ATTR int utf8_range_AsciiIsAscii (unsigned char c)
47+ static FORCE_INLINE_ATTR bool utf8_range_AsciiIsAscii (unsigned char c)
4648{
4749 return c < 128 ;
4850}
4951
50- static FORCE_INLINE_ATTR int utf8_range_IsTrailByteOk (const char c)
52+ static FORCE_INLINE_ATTR bool utf8_range_IsTrailByteOk (const char c)
53+ {
54+ return static_cast <int8_t >(c) <= static_cast <int8_t >(0xBF );
55+ }
56+
57+ static FORCE_INLINE_ATTR bool utf8_range_IsTrailByteOk (const unsigned char c)
5158{
52- return ( int8_t )(c) <= ( int8_t )( 0xBF );
59+ return utf8_range_IsTrailByteOk ( static_cast < const char >(c) );
5360}
5461
5562/* If return_position is false then it returns 1 if |data| is a valid utf8
Original file line number Diff line number Diff line change 1+ // Copyright The OpenTelemetry Authors
2+ // SPDX-License-Identifier: Apache-2.0
13
24#pragma once
35
Original file line number Diff line number Diff line change 1+ // Copyright The OpenTelemetry Authors
2+ // SPDX-License-Identifier: Apache-2.0
3+
14#include < arm_neon.h>
25
36/* This code is almost the same as SSE implementation, please reference
Original file line number Diff line number Diff line change 1+ // Copyright The OpenTelemetry Authors
2+ // SPDX-License-Identifier: Apache-2.0
3+
14#include < emmintrin.h>
25#include < smmintrin.h>
36#include < tmmintrin.h>
Original file line number Diff line number Diff line change 11// Copyright The OpenTelemetry Authors
22// SPDX-License-Identifier: Apache-2.0
33
4+ #include < ostream>
45#include < string>
56#include < unordered_map>
67#include < utility>
You can’t perform that action at this time.
0 commit comments