/third_party/icu/icu4c/source/test/perf/leperf/ |
H A D | cmaps.cpp | 228 le_int32 range = 0; in unicodeToGlyph() local 231 range = fRangeOffset; in unicodeToGlyph() 237 if (SWAPU32(fGroups[range + probe].startCharCode) <= unicode32) { in unicodeToGlyph() 238 range += probe; in unicodeToGlyph() 242 if (SWAPU32(fGroups[range].startCharCode) <= unicode32 && SWAPU32(fGroups[range].endCharCode) >= unicode32) { in unicodeToGlyph() 243 return (LEGlyphID) (SWAPU32(fGroups[range].startGlyphCode) + unicode32 - SWAPU32(fGroups[range].startCharCode)); in unicodeToGlyph()
|
/third_party/icu/icu4c/source/test/letest/ |
H A D | cmaps.cpp | 227 le_int32 range = 0; in unicodeToGlyph() local 230 range = fRangeOffset; in unicodeToGlyph() 236 if (SWAPU32(fGroups[range + probe].startCharCode) <= unicode32) { in unicodeToGlyph() 237 range += probe; in unicodeToGlyph() 241 if (SWAPU32(fGroups[range].startCharCode) <= unicode32 && SWAPU32(fGroups[range].endCharCode) >= unicode32) { in unicodeToGlyph() 242 return (LEGlyphID) (SWAPU32(fGroups[range].startGlyphCode) + unicode32 - SWAPU32(fGroups[range].startCharCode)); in unicodeToGlyph()
|
/third_party/python/Lib/ctypes/test/ |
H A D | test_frombuffer.py | 14 a = array.array("i", range(16)) 68 a = array.array("i", range(16)) 86 a = array.array("i", range(16)) 93 self.assertEqual(x[:], list(range(16))) 96 self.assertEqual(x[:], list(range(16))) 99 self.assertEqual(x[:], list(range(16))) 104 self.assertEqual(x[:], list(range(16))) 112 a = array.array("i", range(16))
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DBuffer.cpp | 195 D3D12_RANGE range; in internalMap() local 196 range.Begin = 0; in internalMap() 197 range.End = size; in internalMap() 198 fD3DResource->Map(0, &range, &fMapPtr); in internalMap() 224 D3D12_RANGE range; in internalUnmap() local 225 range.Begin = 0; in internalUnmap() 226 // For READBACK heaps, unmap requires an empty range in internalUnmap() 227 range.End = fResourceState == D3D12_RESOURCE_STATE_COPY_DEST ? 0 : size; in internalUnmap() 229 fD3DResource->Unmap(0, &range); in internalUnmap()
|
/third_party/python/Lib/test/ |
H A D | test_zipfile64.py | 32 line_gen = ("Test of zipfile line %d." % i for i in range(1000000)) 48 for num in range(filecount): 60 for num in range(filecount): 100 for i in range(numfiles): 106 for i in range(numfiles): 114 for i in range(numfiles): 132 for i in range(numfiles, numfiles2): 138 for i in range(numfiles2):
|
H A D | test_queue.py | 112 for i in range(QUEUE_SIZE-1): 136 for i in range(QUEUE_SIZE): 171 for i in range(100): 174 self.assertEqual(self.cum, sum(range(100)), 221 for i in range(QUEUE_SIZE): 226 for i in range(QUEUE_SIZE): 324 for i in range(QUEUE_SIZE-1): 370 for i in range(QUEUE_SIZE): 488 for i in range(n_threads)] 491 for i in range(n_thread [all...] |
H A D | test_gettext.py | 358 s = ''.join([ str(f(x)) for x in range(200) ]) 364 s = ''.join([ str(f(x)) for x in range(200) ]) 370 s = ''.join([ str(f(x)) for x in range(200) ]) 376 s = ''.join([ str(f(x)) for x in range(200) ]) 382 s = ''.join([ str(f(x)) for x in range(200) ]) 389 s = ''.join([ str(f(x)) for x in range(200) ]) 395 s = ''.join([ str(f(x)) for x in range(200) ]) 401 s = ''.join([ str(f(x)) for x in range(200) ]) 407 s = ''.join([ str(f(x)) for x in range(200) ]) 413 s = ''.join([ str(f(x)) for x in range(20 [all...] |
H A D | list_tests.py | 65 for i in range(sys.getrecursionlimit() + 100): 70 a = self.type2test(range(20)) 81 a = self.type2test(range(20)) 83 self.assertEqual(list(r), self.type2test(range(19, -1, -1))) 153 for i in range(-3, 4): 164 for j in range(-3, 4): 188 a[:] = tuple(range(10)) 189 self.assertEqual(a, self.type2test(range(10))) 380 a[:] = [EvilCmp(a) for _ in range(100)] 465 z = self.type2test(range(1 [all...] |
/third_party/python/Modules/_decimal/tests/ |
H A D | formathelper.py | 225 for i in range(0, 0x110002): 239 active = sorted(random.sample(range(7), random.randrange(8))) 274 for width in ['']+[str(y) for y in range(1, 15)]+['101']: 275 for prec in ['']+['.'+str(y) for y in range(15)]: 289 for width in ['']+[str(y) for y in range(1, 20)]+['101']: 290 for prec in ['']+['.'+str(y) for y in range(1, 20)]: 296 active = sorted(random.sample(range(5), random.randrange(6))) 324 active = sorted(random.sample(range(5), random.randrange(6)))
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_split_benchmark.cc | 39 std::string test = MakeTestString(state.range(0)); in BM_Split2StringView() 61 std::string test = MakeMultiDelimiterTestString(state.range(0)); in BM_Split2StringViewByAnyChar() 71 std::string test = MakeTestString(state.range(0)); in BM_Split2StringViewLifted() 81 std::string test = MakeTestString(state.range(0)); in BM_Split2String() 93 std::string test = MakeTestString(state.range(0)); in BM_Split2SplitStringUsing() 103 const int len = state.range(0); in BM_SplitStringToUnorderedSet() 117 const int len = state.range(0); in BM_SplitStringToUnorderedMap() 131 const int len = state.range(0); in BM_SplitStringAllowEmpty()
|
/third_party/ffmpeg/libavcodec/ |
H A D | aptx.c | 469 int32_t sign, same_sign[2], weight[2], sw1, range; in aptx_process_subband() local 480 range = 0x100000; in aptx_process_subband() 482 sw1 = (av_clip(sw1, -range, range) & ~0xF) * 16; in aptx_process_subband() 484 range = 0x300000; in aptx_process_subband() 486 prediction->s_weight[0] = av_clip(rshift32(weight[0], 8), -range, range); in aptx_process_subband() 488 range = 0x3C0000 - prediction->s_weight[0]; in aptx_process_subband() 490 prediction->s_weight[1] = av_clip(rshift32(weight[1], 8), -range, range); in aptx_process_subband() [all...] |
/third_party/ntfs-3g/libntfs-3g/ |
H A D | ioctl.c | 92 uint64_t range[2]; in fstrim_clusters() local 97 range[0] = lcn << vol->cluster_size_bits; in fstrim_clusters() 98 range[1] = length << vol->cluster_size_bits; in fstrim_clusters() 100 if (dev->d_ops->ioctl(dev, BLKDISCARD, range) == -1) { in fstrim_clusters() 253 * is the minimum continguous free range to discard. 257 struct fstrim_range *range = data; in fstrim() local 258 u64 start = range->start; in fstrim() 259 u64 len = range->len; in fstrim() 260 u64 minlen = range->minlen; in fstrim() 405 struct fstrim_range *range in ntfs_ioctl() local [all...] |
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | bi_opt_push_ubo.c | 54 uint8_t range[MAX_UBO_WORDS]; member 86 uint8_t *range = res.blocks[ubo].range; in bi_analyze_ranges() local 87 range[word] = MAX2(range[word], channels); in bi_analyze_ranges() 104 unsigned range = block->range[r]; in bi_pick_ubo() local 107 if (range == 0) continue; in bi_pick_ubo() 110 if (push->count > PAN_MAX_PUSH - range) in bi_pick_ubo() 113 for (unsigned offs = 0; offs < range; in bi_pick_ubo() [all...] |
/third_party/skia/tests/ |
H A D | OpChainTest.cpp | 19 // We create Ops that write a value into a range of a buffer. We create ranges from 20 // kNumOpPositions starting positions x kRanges canonical ranges. We repeat each range kNumRepeats 60 // Within a's range we have one value each other op, but not one for a itself. in combinable_index() 100 static GrOp::Owner Make(GrRecordingContext* context, int value, const Range& range, in Make() argument 102 return GrOp::Make<TestOp>(context, value, range, result, combinable); in Make() 120 TestOp(int value, const Range& range, int result[], const Combinable* combinable) in TestOp() argument 122 fValueRanges.push_back({value, range}); in TestOp() 123 this->setBounds(SkRect::MakeXYWH(range.fOffset, 0, range.fOffset + range in TestOp() 236 Range range = kRanges[j / kNumOpPositions]; DEF_GPUTEST() local [all...] |
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A D | parser_impl_struct_member_test.cc | 41 EXPECT_EQ(m->source.range, (Source::Range{{1u, 1u}, {1u, 2u}})); in TEST_F() 42 EXPECT_EQ(m->type->source.range, (Source::Range{{1u, 5u}, {1u, 8u}})); in TEST_F() 67 EXPECT_EQ(m->source.range, (Source::Range{{1u, 14u}, {1u, 15u}})); in TEST_F() 68 EXPECT_EQ(m->type->source.range, (Source::Range{{1u, 18u}, {1u, 21u}})); in TEST_F() 92 EXPECT_EQ(m->source.range, (Source::Range{{1u, 13u}, {1u, 14u}})); in TEST_F() 93 EXPECT_EQ(m->type->source.range, (Source::Range{{1u, 17u}, {1u, 20u}})); in TEST_F() 117 EXPECT_EQ(m->source.range, (Source::Range{{1u, 13u}, {1u, 14u}})); in TEST_F() 118 EXPECT_EQ(m->type->source.range, (Source::Range{{1u, 17u}, {1u, 20u}})); in TEST_F() 146 EXPECT_EQ(m->source.range, (Source::Range{{2u, 14u}, {2u, 15u}})); in TEST_F() 147 EXPECT_EQ(m->type->source.range, (Sourc in TEST_F() [all...] |
/third_party/mesa3d/src/panfrost/vulkan/ |
H A D | panvk_vX_meta_clear.c | 52 .range = ~0); in panvk_meta_clear_color_attachment_shader() 337 const VkImageSubresourceRange *range) in panvk_meta_clear_color_img() 362 unsigned level_count = vk_image_subresource_level_count(&img->vk, range); in panvk_meta_clear_color_img() 363 unsigned layer_count = vk_image_subresource_layer_count(&img->vk, range); in panvk_meta_clear_color_img() 365 for (unsigned level = range->baseMipLevel; in panvk_meta_clear_color_img() 366 level < range->baseMipLevel + level_count; level++) { in panvk_meta_clear_color_img() 373 for (unsigned layer = range->baseArrayLayer; in panvk_meta_clear_color_img() 374 layer < range->baseArrayLayer + layer_count; layer++) { in panvk_meta_clear_color_img() 404 const VkImageSubresourceRange *range) in panvk_meta_clear_zs_img() 421 .zs.clear.z = range in panvk_meta_clear_zs_img() 334 panvk_meta_clear_color_img(struct panvk_cmd_buffer *cmdbuf, struct panvk_image *img, const VkClearColorValue *color, const VkImageSubresourceRange *range) panvk_meta_clear_color_img() argument 401 panvk_meta_clear_zs_img(struct panvk_cmd_buffer *cmdbuf, struct panvk_image *img, const VkClearDepthStencilValue *value, const VkImageSubresourceRange *range) panvk_meta_clear_zs_img() argument [all...] |
/third_party/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/ |
H A D | ftrace_tracing_cpumask.sh | 31 range=31 38 range=$((nr_cpus - 1)) 48 local set_cnt=$(tst_random 1 $((range + 1))) 53 local group_cpuid=$(tst_random 1 $range)
|
/third_party/python/Lib/ |
H A D | calendar.py | 54 _months = [datetime.date(2001, i+1, 1).strftime for i in range(12)] 74 _days = [datetime.date(2001, 1, i+1).strftime for i in range(7)] 99 (MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) = range(7) 108 """Return number of leap years in range [y1, y2). 172 for i in range(self.firstweekday, self.firstweekday + 7): 192 yield from range(1, ndays + 1) 207 used for dates outside of datetime.date range. 214 for d in range(end-days_before, end): 216 for d in range(1, ndays + 1): 219 for d in range( [all...] |
/third_party/vk-gl-cts/modules/gles2/functional/ |
H A D | es2fBufferWriteTests.cpp | 144 //! Updates range list (start, len) with a new range. 152 // Append ranges that end before the new range. in addRangeToList() 156 // Join any ranges that intersect new range in addRangeToList() 355 for (vector<tcu::IVec2>::const_iterator range = m_ranges.begin(); range != m_ranges.end(); range++) in iterate() 357 fillWithRandomBytes(refBuf.getPtr()+range->x(), range->y(), dataSeed ^ deInt32Hash(range in iterate() [all...] |
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fBufferWriteTests.cpp | 144 //! Updates range list (start, len) with a new range. 152 // Append ranges that end before the new range. in addRangeToList() 156 // Join any ranges that intersect new range in addRangeToList() 355 for (vector<tcu::IVec2>::const_iterator range = m_ranges.begin(); range != m_ranges.end(); range++) in iterate() 357 fillWithRandomBytes(refBuf.getPtr()+range->x(), range->y(), dataSeed ^ deInt32Hash(range in iterate() [all...] |
/third_party/gn/src/gn/ |
H A D | header_checker_unittest.cc | 156 LocationRange range; // Dummy value. in TEST_F() local 204 checker->CheckInclude(&a_, input_file, d_header, range, &no_dependency_cache, in TEST_F() 211 checker->CheckInclude(&a_, input_file, b_public, range, &no_dependency_cache, in TEST_F() 218 checker->CheckInclude(&a_, input_file, c_public, range, &no_dependency_cache, in TEST_F() 223 checker->CheckInclude(&a_, input_file, c_private, range, &no_dependency_cache, in TEST_F() 230 checker->CheckInclude(&a_, input_file, SourceFile("//random.h"), range, in TEST_F() 238 checker->CheckInclude(&a_, input_file, otc_header, range, in TEST_F() 291 LocationRange range; // Dummy value. in TEST_F() local 302 checker->CheckInclude(&b_, input_file, a_public, range, &no_dependency_cache, in TEST_F() 312 checker->CheckInclude(&b_, input_file, a_public, range, in TEST_F() 345 LocationRange range; // Dummy value. TEST_F() local 446 LocationRange range; // Dummy value. TEST_F() local [all...] |
/third_party/cups-filters/filter/ |
H A D | texttotext.c | 908 const char *range; /* Pointer into range string */ in check_range() local 926 return (1); /* No range, print all pages... */ in check_range() 928 for (range = page_ranges; *range != '\0';) in check_range() 930 if (*range == '-') in check_range() 933 range ++; in check_range() 934 upper = (int)strtol(range, (char **)&range, 10); in check_range() 938 lower = (int)strtol(range, (cha in check_range() [all...] |
/third_party/ltp/testcases/kernel/hotplug/memory_hotplug/ |
H A D | segment.c | 359 * map_file_segment() -- map a [range of a] registered file segment. 506 int segment_register(seg_type_t type, char *name, range_t * range, int flags) in segment_register() argument 526 segp->seg_length = round_up_to_pagesize(range->length); in segment_register() 527 segp->seg_offset = round_down_to_pagesize(range->offset); in segment_register() 666 * segment_touch() - "touch" [read or write] each page of specified range 671 int segment_touch(char *name, range_t * range, int rw) in segment_touch() argument 687 offset = round_down_to_pagesize(range->offset); in segment_touch() 697 length = range->length; in segment_touch() 759 * range only applies to mapped file. 761 int segment_map(char *name, range_t * range, in argument 813 segment_mbind(char *name, range_t * range, int policy, nodemask_t * nodemask, int flags) segment_mbind() argument 876 segment_location(char *name, range_t * range) segment_location() argument [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | mathutil_unittest.cpp | 247 // Our implementation can't handle this query, despite the parameters being in range. 336 RangeI range(0, 0); 338 range.extend(5); 339 EXPECT_EQ(0, range.low()); 340 EXPECT_EQ(6, range.high()); 341 EXPECT_EQ(6, range.length()); 343 range.extend(-1); 344 EXPECT_EQ(-1, range.low()); 345 EXPECT_EQ(6, range.high()); 346 EXPECT_EQ(7, range [all...] |
/third_party/node/deps/v8/src/compiler/backend/ |
H A D | register-allocator.h | 306 // Creates a new live range. 309 SpillRange* AssignSpillRangeToLiveRange(TopLevelLiveRange* range, 311 SpillRange* CreateSpillRangeForLiveRange(TopLevelLiveRange* range); 405 // live range that owns it. The interval must contain the position. 582 // Returns use position in this live range that follows both start 587 // range and which follows both start and last processed use position 594 // range and which follows both start and last processed use position 599 // range and which follows both start and last processed use position. 604 // range and which precedes start. 609 // range an 1117 LiveRangeBound(LiveRange* range, bool skip) LiveRangeBound() argument 1385 TopLevelLiveRange* range; global() member [all...] |