Home
last modified time | relevance | path

Searched full:range (Results 1 – 25 of 5750) sorted by relevance

12345678910>>...230

/src/usr.sbin/ppp/
H A Dncpaddr.c411 struct ncprange range; in ncpaddr_aton() local
413 if (!ncprange_aton(&range, ncp, data)) in ncpaddr_aton()
416 if (range.ncprange_family == AF_INET && range.ncprange_ip4width != 32 && in ncpaddr_aton()
417 range.ncprange_ip4addr.s_addr != INADDR_ANY) { in ncpaddr_aton()
423 if (range.ncprange_family == AF_INET6 && range.ncprange_ip6width != 128 && in ncpaddr_aton()
424 !IN6_IS_ADDR_UNSPECIFIED(&range.ncprange_ip6addr)) { in ncpaddr_aton()
430 switch (range.ncprange_family) { in ncpaddr_aton()
432 addr->ncpaddr_family = range.ncprange_family; in ncpaddr_aton()
433 addr->ncpaddr_ip4addr = range.ncprange_ip4addr; in ncpaddr_aton()
438 addr->ncpaddr_family = range.ncprange_family; in ncpaddr_aton()
[all …]
/src/crypto/openssl/ssl/quic/
H A Duint_set.c20 * Insert Range: Adds an inclusive range of integers [start, end]
22 * in the range.
24 * Remove Range: Removes an inclusive range of integers [start, end]
25 * from the set. Not all of the range need already be in
26 * the set, but any part of the range in the set is removed.
35 * implemented as a doubly linked sorted list of range structures, which are
44 * end of the range.
54 * Invariant: No range [a, b] ever has a > b.
56 * Invariant: Since ranges are represented using inclusive bounds, no range
83 if (x->range.start - 1 != xprev->range.end) in uint_set_merge_adjacent()
[all …]
H A Dquic_sf_list.c16 UINT_RANGE range; member
25 (size_t)(sf->range.end - sf->range.start)); in stream_frame_free()
30 static STREAM_FRAME *stream_frame_new(UINT_RANGE *range, OSSL_QRX_PKT *pkt, in stream_frame_new() argument
41 sf->range = *range; in stream_frame_new()
63 static int append_frame(SFRAME_LIST *fl, UINT_RANGE *range, in append_frame() argument
69 if ((new_frame = stream_frame_new(range, pkt, data)) == NULL) in append_frame()
79 int ossl_sframe_list_insert(SFRAME_LIST *fl, UINT_RANGE *range, in ossl_sframe_list_insert() argument
85 uint64_t curr_end = fl->tail != NULL ? fl->tail->range.end in ossl_sframe_list_insert()
89 assert((!fin || curr_end <= range->end) in ossl_sframe_list_insert()
90 && (!fl->fin || curr_end >= range->end)); in ossl_sframe_list_insert()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantRange.h1 //===- ConstantRange.h - Represent a range ----------------------*- C++ -*-===//
9 // Represent a range of possible values that may occur when the program is run
11 // constant, which MAY wrap around the end of the numeric range. To do this, it
21 // The other integral ranges use min/max values for special range values. For
46 /// This class represents a range of values.
50 /// Create empty constant range with same bitwidth.
55 /// Create full constant range with same bitwidth.
64 /// Initialize a range to hold the single specified value.
67 /// Initialize a range of values explicitly. This will assert out if
72 /// Create empty constant range with the given bit width.
[all …]
/src/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAddressRanges.h20 /// A class that represents an address range. The range is specified using
69 bool contains(AddressRange Range) const { in contains() argument
70 return find(Range.start(), Range.end()) != Ranges.end(); in contains()
116 /// The AddressRanges class helps normalize address range collections.
123 Collection::const_iterator insert(AddressRange Range) { in insert() argument
124 if (Range.empty()) in insert()
127 auto It = llvm::upper_bound(Ranges, Range); in insert()
129 while (It2 != Ranges.end() && It2->start() <= Range.end()) in insert()
132 Range = {Range.start(), std::max(Range.end(), std::prev(It2)->end())}; in insert()
135 if (It != Ranges.begin() && Range.start() <= std::prev(It)->end()) { in insert()
[all …]
H A DADL.h27 constexpr auto begin_impl(RangeT &&range)
28 -> decltype(begin(std::forward<RangeT>(range))) {
29 return begin(std::forward<RangeT>(range));
35 constexpr auto end_impl(RangeT &&range)
36 -> decltype(end(std::forward<RangeT>(range))) {
37 return end(std::forward<RangeT>(range));
43 constexpr auto rbegin_impl(RangeT &&range)
44 -> decltype(rbegin(std::forward<RangeT>(range))) {
45 return rbegin(std::forward<RangeT>(range));
51 constexpr auto rend_impl(RangeT &&range)
[all …]
/src/crypto/openssl/crypto/bn/
H A Dbn_rand.c132 /* random number r: 0 <= r < range */
133 static int bnrand_range(BNRAND_FLAG flag, BIGNUM *r, const BIGNUM *range, in bnrand_range() argument
144 if (range->neg || BN_is_zero(range)) { in bnrand_range()
149 n = BN_num_bits(range); /* n > 0 */ in bnrand_range()
151 /* BN_is_bit_set(range, n - 1) always holds */ in bnrand_range()
155 else if (!BN_is_bit_set(range, n - 2) && !BN_is_bit_set(range, n - 3)) { in bnrand_range()
157 * range = 100..._2, so 3*range (= 11..._2) is exactly one bit longer in bnrand_range()
158 * than range in bnrand_range()
166 * If r < 3*range, use r := r MOD range (which is either r, r - in bnrand_range()
167 * range, or r - 2*range). Otherwise, iterate once more. Since in bnrand_range()
[all …]
/src/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp31 StringRef clang::tooling::getText(CharSourceRange Range, in getText() argument
33 return Lexer::getSourceText(Range, Context.getSourceManager(), in getText()
37 CharSourceRange clang::tooling::maybeExtendRange(CharSourceRange Range, in maybeExtendRange() argument
40 CharSourceRange R = Lexer::getAsCharRange(Range, Context.getSourceManager(), in maybeExtendRange()
43 return Range; in maybeExtendRange()
49 return Range; in maybeExtendRange()
50 return CharSourceRange::getTokenRange(Range.getBegin(), Tok.getLocation()); in maybeExtendRange()
53 llvm::Error clang::tooling::validateRange(const CharSourceRange &Range, in validateRange() argument
56 if (Range.isInvalid()) in validateRange()
58 "Invalid range"); in validateRange()
[all …]
/src/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransformActions.cpp22 /// with applyRewrites(). E.g. if the same source range
63 /// A range to remove. It is a character range.
67 CharRange(CharSourceRange range, SourceManager &srcMgr, Preprocessor &PP) { in CharRange()
68 SourceLocation beginLoc = range.getBegin(), endLoc = range.getEnd(); in CharRange()
70 if (range.isTokenRange()) { in CharRange()
135 void remove(SourceRange range);
137 void replace(SourceRange range, StringRef text);
138 void replace(SourceRange range, SourceRange replacementRange);
142 void increaseIndentation(SourceRange range,
145 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
[all …]
H A DInternals.h33 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
34 bool hasDiagnostic(ArrayRef<unsigned> IDs, SourceRange range) const;
65 void remove(SourceRange range);
67 void replace(SourceRange range, StringRef text);
68 void replace(SourceRange range, SourceRange replacementRange);
72 void increaseIndentation(SourceRange range,
75 bool clearDiagnostic(ArrayRef<unsigned> IDs, SourceRange range);
76 bool clearAllDiagnostics(SourceRange range) { in clearAllDiagnostics() argument
77 return clearDiagnostic(std::nullopt, range); in clearAllDiagnostics()
79 bool clearDiagnostic(unsigned ID1, unsigned ID2, SourceRange range) { in clearDiagnostic() argument
[all …]
/src/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DRewriter.h39 /// Given a source range, true to include previous inserts at the
40 /// beginning of the range as part of the range itself (true by default).
43 /// Given a source range, true to include previous inserts at the
44 /// end of the range as part of the range itself (true by default).
55 /// line and then, if found, expand the removal range to include it.
58 /// scan before and after the removal range until the next newline or
86 /// getRangeSize - Return the size in bytes of the specified range if they
88 int getRangeSize(SourceRange Range,
90 int getRangeSize(const CharSourceRange &Range,
94 /// range. If the start or end of the range was unrewritable or if they are
[all …]
/src/contrib/llvm-project/libcxx/modules/std/
H A Dranges.inc13 // [range.access], range access
30 // [range.range], ranges
31 using std::ranges::range;
49 // [range.sized], sized ranges
53 // [range.view], views
58 // [range.refinements], other range refinements
72 // [range.subrange], sub-ranges
83 // [range.dangling], dangling iterator handling
86 // [range.elementsof], class template elements_­of
94 // [range.utility.conv], range conversions
[all …]
/src/contrib/bmake/unit-tests/
H A Dvarmod-range.mk1 # $NetBSD: varmod-range.mk,v 1.19 2025/06/28 22:39:29 rillig Exp $
3 # Tests for the :range variable modifier, which generates sequences
4 # of integers from the given range.
9 # The :range modifier generates a sequence of integers, one number per
11 .if ${a b c:L:range} != "1 2 3"
17 .if ${:U first "the second word" third 4 :range} != "1 2 3 4"
21 # The :range modifier takes the number of words from the value of the
22 # expression. If that expression is undefined, the range is
24 .if "${:range}" != ""
30 .if ${:U:range} != "1"
[all …]
/src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DMemoryTagManagerAArch64MTE.cpp49 MemoryTagManagerAArch64MTE::ExpandToGranule(TagRange range) const { in ExpandToGranule()
51 if (!range.IsValid()) in ExpandToGranule()
52 return range; in ExpandToGranule()
57 lldb::addr_t new_start = range.GetRangeBase(); in ExpandToGranule()
62 size_t new_len = range.GetByteSize() + align_down_amount; in ExpandToGranule()
84 // First check that the range is not inverted. in MakeTaggedRange()
99 // While there are parts of the range that don't have a matching tagged memory in MakeTaggedRange()
102 // Search for a region that contains the start of the range in MakeTaggedRange()
111 // Some part of this range is untagged (or unmapped) so error in MakeTaggedRange()
113 "Address range 0x%" PRIx64 ":0x%" PRIx64 in MakeTaggedRange()
[all …]
/src/contrib/llvm-project/libcxx/include/
H A Dranges21 // [range.access], range access
31 // [range.range], ranges
33 concept range = see below;
40 template<range R>
42 template<range R>
46 template<range R>
48 template<range R>
50 template<range R>
52 template <range R>
55 // [range.sized], sized ranges
[all …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_016_pos.ksh19 # Verify zfs destroy test for range of snapshots by giving a list
23 # 1. Create a list of valid and invalid arguments for range snapshot
55 for i in $range; do
64 for i in $range; do
86 range="1 2 3 4 5"
102 log_note "Destroy the beginning range"
106 range="1 2 3"
108 range="4 5"
112 log_note "Destroy the mid range"
115 range="2 3 4"
[all …]
/src/contrib/jemalloc/include/jemalloc/internal/
H A Dprng.h60 * The prng_lg_range functions give a uniform int in the half-open range [0,
99 * in [0, range) instead of [0, 2**lg_range).
103 prng_range_u32(uint32_t *state, uint32_t range) { in prng_range_u32() argument
104 assert(range != 0); in prng_range_u32()
106 * If range were 1, lg_range would be 0, so the shift in in prng_range_u32()
110 if (range == 1) { in prng_range_u32()
114 /* Compute the ceiling of lg(range). */ in prng_range_u32()
115 unsigned lg_range = ffs_u32(pow2_ceil_u32(range)); in prng_range_u32()
117 /* Generate a result in [0..range) via repeated trial. */ in prng_range_u32()
121 } while (ret >= range); in prng_range_u32()
[all …]
/src/contrib/llvm-project/llvm/lib/IR/
H A DConstantRangeList.cpp17 auto Range = RangesRef[0]; in isOrderedRanges() local
18 if (Range.getLower().sge(Range.getUpper())) in isOrderedRanges()
101 for (auto &Range : Ranges) { in subtract() local
102 if (SubRange.getUpper().sle(Range.getLower()) || in subtract()
103 Range.getUpper().sle(SubRange.getLower())) { in subtract()
104 // "Range" and "SubRange" do not overlap. in subtract()
105 // L---U : Range in subtract()
108 Result.push_back(Range); in subtract()
109 } else if (Range.getLower().sle(SubRange.getLower()) && in subtract()
110 SubRange.getUpper().sle(Range.getUpper())) { in subtract()
[all …]
/src/tests/sys/file/
H A Dfspacectl_test.c186 struct spacectl_range range; in ATF_TC_BODY() local
192 range.r_offset = offset = blocksize; in ATF_TC_BODY()
193 range.r_len = length = (file_max_blocks - 1) * blocksize - in ATF_TC_BODY()
194 range.r_offset; in ATF_TC_BODY()
199 ATF_CHECK(fspacectl(fd, SPACECTL_DEALLOC, &range, 0, &range) == 0); in ATF_TC_BODY()
211 struct spacectl_range range; in ATF_TC_BODY() local
217 range.r_offset = offset = blocksize / 2; in ATF_TC_BODY()
218 range.r_len = length = (file_max_blocks - 1) * blocksize + in ATF_TC_BODY()
224 ATF_CHECK(fspacectl(fd, SPACECTL_DEALLOC, &range, 0, &range) == 0); in ATF_TC_BODY()
236 struct spacectl_range range; in ATF_TC_BODY() local
[all …]
/src/contrib/llvm-project/lldb/source/Symbol/
H A DBlock.cpp45 s->Printf(", range%s = ", num_ranges > 1 ? "s" : ""); in GetDescription()
47 const Range &range = m_ranges.GetEntryRef(i); in GetDescription() local
48 DumpAddressRange(s->AsRawOstream(), base_addr + range.GetRangeBase(), in GetDescription()
49 base_addr + range.GetRangeEnd(), 4); in GetDescription()
86 const Range &range = m_ranges.GetEntryRef(i); in Dump() local
87 if (parent_block != nullptr && !parent_block->Contains(range)) in Dump()
91 DumpAddressRange(s->AsRawOstream(), base_addr + range.GetRangeBase(), in Dump()
92 base_addr + range.GetRangeEnd(), 4); in Dump()
173 const Range &range = m_ranges.GetEntryRef(i); in DumpAddressRanges() local
174 DumpAddressRange(s->AsRawOstream(), base_addr + range.GetRangeBase(), in DumpAddressRanges()
[all …]
/src/contrib/llvm-project/libcxx/include/__ranges/
H A Dconcepts.h44 // [range.range]
47 concept range = requires(_Tp& __t) { in requires()
53 concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>;
57range<_Range> && (is_lvalue_reference_v<_Range> || enable_borrowed_range<remove_cvref_t<_Range>>);
61 template <range _Rp>
64 template <range _Rp>
67 template <range _Rp>
70 template <range _Rp>
73 template <range _Rp>
76 template <range _Rp>
[all …]
/src/contrib/llvm-project/clang/lib/Edit/
H A DCommit.cpp65 CharSourceRange range, in insertFromRange() argument
69 if (!canRemoveRange(range, RangeOffs, RangeLen)) { in insertFromRange()
82 PPRec->areInDifferentConditionalDirectiveRegion(loc, range.getBegin())) { in insertFromRange()
91 bool Commit::remove(CharSourceRange range) { in remove() argument
94 if (!canRemoveRange(range, Offs, Len)) { in remove()
99 addRemove(range.getBegin(), Offs, Len); in remove()
103 bool Commit::insertWrap(StringRef before, CharSourceRange range, in insertWrap() argument
105 bool commitableBefore = insert(range.getBegin(), before, /*afterToken=*/false, in insertWrap()
108 if (range.isTokenRange()) in insertWrap()
109 commitableAfter = insertAfterToken(range.getEnd(), after); in insertWrap()
[all …]
/src/contrib/llvm-project/lldb/include/lldb/Core/
H A DAddressRange.h24 /// A section + offset based address range class.
46 /// The size in bytes of the address range.
59 /// The size in bytes of the address range.
75 /// The size in bytes of the address range.
91 /// Check if a section offset address is contained in this range.
97 /// Returns \b true if \a so_addr is contained in this range,
101 /// Check if a section offset address is contained in this range.
107 /// Returns \b true if \a so_addr is contained in this range,
113 /// is contained within this object's file address range.
121 /// in the address range, \b false otherwise.
[all …]
/src/contrib/elftoolchain/addr2line/
H A Daddr2line.c60 struct range { struct
61 RB_ENTRY(range) entry;
92 static RB_HEAD(cutree, range) cuhead = RB_INITIALIZER(&cuhead); argument
95 lopccmp(struct range *e1, struct range *e2) in lopccmp()
100 RB_PROTOTYPE(cutree, range, entry, lopccmp);
101 RB_GENERATE(cutree, range, entry, lopccmp) in RB_GENERATE() argument
174 search_func(struct range *range, Dwarf_Unsigned addr) in search_func() argument
182 STAILQ_FOREACH(f, &range->funclist, next) { in search_func()
220 struct range *range) in collect_func() argument
244 * Function address range can be specified by either in collect_func()
[all …]
/src/sys/contrib/device-tree/Bindings/iio/dac/
H A Dad5758.txt36 - adi,range-microvolt: Voltage output range
38 * <0 5000000>: 0 V to 5 V voltage range
39 * <0 10000000>: 0 V to 10 V voltage range
40 * <(-5000000) 5000000>: ±5 V voltage range
41 * <(-10000000) 10000000>: ±10 V voltage range
42 - adi,range-microamp: Current output range
44 * <0 20000>: 0 mA to 20 mA current range
45 * <0 24000>: 0 mA to 24 mA current range
46 * <4 24000>: 4 mA to 20 mA current range
47 * <(-20000) 20000>: ±20 mA current range
[all …]

12345678910>>...230