File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
third-party/folly/src/folly/algorithm/simd Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 22
22
23
23
namespace folly ::simd::detail {
24
24
25
- bool containsU8 (folly::span<const std::uint8_t > haystack, std::uint8_t needle) {
25
+ bool containsU8 (
26
+ folly::span<const std::uint8_t > haystack, std::uint8_t needle) noexcept {
26
27
return containsImpl (haystack, needle);
27
28
}
28
29
bool containsU16 (
29
- folly::span<const std::uint16_t > haystack, std::uint16_t needle) {
30
+ folly::span<const std::uint16_t > haystack, std::uint16_t needle) noexcept {
30
31
return containsImpl (haystack, needle);
31
32
}
32
33
bool containsU32 (
33
- folly::span<const std::uint32_t > haystack, std::uint32_t needle) {
34
+ folly::span<const std::uint32_t > haystack, std::uint32_t needle) noexcept {
34
35
return containsImpl (haystack, needle);
35
36
}
36
37
37
38
bool containsU64 (
38
- folly::span<const std::uint64_t > haystack, std::uint64_t needle) {
39
+ folly::span<const std::uint64_t > haystack, std::uint64_t needle) noexcept {
39
40
return containsImpl (haystack, needle);
40
41
}
41
42
Original file line number Diff line number Diff line change @@ -26,13 +26,14 @@ namespace detail {
26
26
27
27
// no overloading for easier profiling.
28
28
29
- bool containsU8 (folly::span<const std::uint8_t > haystack, std::uint8_t needle);
29
+ bool containsU8 (
30
+ folly::span<const std::uint8_t > haystack, std::uint8_t needle) noexcept ;
30
31
bool containsU16 (
31
- folly::span<const std::uint16_t > haystack, std::uint16_t needle);
32
+ folly::span<const std::uint16_t > haystack, std::uint16_t needle) noexcept ;
32
33
bool containsU32 (
33
- folly::span<const std::uint32_t > haystack, std::uint32_t needle);
34
+ folly::span<const std::uint32_t > haystack, std::uint32_t needle) noexcept ;
34
35
bool containsU64 (
35
- folly::span<const std::uint64_t > haystack, std::uint64_t needle);
36
+ folly::span<const std::uint64_t > haystack, std::uint64_t needle) noexcept ;
36
37
37
38
template <typename R>
38
39
using std_range_value_t = typename std::iterator_traits<decltype (std::begin(
You can’t perform that action at this time.
0 commit comments