Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 14208) sorted by relevance

12345678910>>...569

/third_party/python/Lib/test/
Dtest_bigmem.py72 def _test_capitalize(self, size): argument
75 s = _('-') * size + SUBSTR
81 @bigmemtest(size=_2G + 10, memuse=1)
82 def test_center(self, size): argument
84 s = SUBSTR.center(size)
85 self.assertEqual(len(s), size)
92 @bigmemtest(size=_2G, memuse=2)
93 def test_count(self, size): argument
96 s = _('.') * size + SUBSTR
97 self.assertEqual(s.count(_('.')), size)
[all …]
/third_party/littlefs/tests/
Dtest_entries.toml17 sprintf(path, "hi0"); size = 20;
20 memset(wbuffer, 'c', size);
21 lfs_file_write(&lfs, &file, wbuffer, size) => size;
22 lfs_file_size(&lfs, &file) => size;
25 sprintf(path, "hi1"); size = 20;
28 memset(wbuffer, 'c', size);
29 lfs_file_write(&lfs, &file, wbuffer, size) => size;
30 lfs_file_size(&lfs, &file) => size;
33 sprintf(path, "hi2"); size = 20;
36 memset(wbuffer, 'c', size);
[all …]
Dtest_seek.toml16 size = strlen("kittycatcat");
17 memcpy(buffer, "kittycatcat", size);
19 lfs_file_write(&lfs, &file, buffer, size);
28 size = strlen("kittycatcat");
30 lfs_file_read(&lfs, &file, buffer, size) => size;
31 memcmp(buffer, "kittycatcat", size) => 0;
37 lfs_file_read(&lfs, &file, buffer, size) => size;
38 memcmp(buffer, "kittycatcat", size) => 0;
41 lfs_file_read(&lfs, &file, buffer, size) => size;
42 memcmp(buffer, "kittycatcat", size) => 0;
[all …]
/third_party/vk-gl-cts/scripts/opengl/
Dgen_call_log_wrapper.py35 def pointer (size): argument
36 return lambda name: "getPointerStr(%s, %s)" % (name, size)
38 def enumPointer (group, size): argument
39 …numPointerStr(%(name)s, %(size)s, %(nameFunc)s)" % {"name": name, "size": size, "nameFunc": ("get%…
41 def booleanPointer (size): argument
42 return lambda name: "getBooleanPointerStr(%s, %s)" % (name, size)
90 "glDeleteBuffers": LogSpec({1: pointer(size = "n")}),
91 "glDeleteFramebuffers": LogSpec({1: pointer(size = "n")}),
92 "glDeleteQueries": LogSpec({1: pointer(size = "n")}),
93 "glDeleteRenderbuffers": LogSpec({1: pointer(size = "n")}),
[all …]
/third_party/ffmpeg/tests/checkasm/
Dhevc_pel.c76 int size, bit_depth, i, j, row; in checkasm_check_hevc_qpel() local
85 for (size = 1; size < 10; size++) { in checkasm_check_hevc_qpel()
94 … if (check_func(h.put_hevc_qpel[size][j][i], "put_hevc_%s%d_%d", type, sizes[size], bit_depth)) { in checkasm_check_hevc_qpel()
97 … call_ref(dstw0, src0, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); in checkasm_check_hevc_qpel()
98 … call_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); in checkasm_check_hevc_qpel()
99 for (row = 0; row < size[sizes]; row++) { in checkasm_check_hevc_qpel()
100 … if (memcmp(dstw0 + row * MAX_PB_SIZE, dstw1 + row * MAX_PB_SIZE, sizes[size] * SIZEOF_PIXEL)) in checkasm_check_hevc_qpel()
103 … bench_new(dstw1, src1, sizes[size] * SIZEOF_PIXEL, sizes[size], i, j, sizes[size]); in checkasm_check_hevc_qpel()
120 int size, bit_depth, i, j; in checkasm_check_hevc_qpel_uni() local
129 for (size = 1; size < 10; size++) { in checkasm_check_hevc_qpel_uni()
[all …]
/third_party/parse5/test/data/parser-feedback/
Dtests23.test4 …"description": "<p><font size=4><font color=red><font size=4><font size=4><font size=4><font size=…
5 …"input": "<p><font size=4><font color=red><font size=4><font size=4><font size=4><font size=4><fon…
16 "size": "4"
30 "size": "4"
37 "size": "4"
44 "size": "4"
51 "size": "4"
58 "size": "4"
80 "description": "<p><font size=4><font size=4><font size=4><font size=4><p>X",
81 "input": "<p><font size=4><font size=4><font size=4><font size=4><p>X",
[all …]
/third_party/mesa3d/src/virtio/venus-protocol/
Dvn_protocol_driver_structs.h24 size_t size = 0; in vn_sizeof_VkExtent3D() local
25 size += vn_sizeof_uint32_t(&val->width); in vn_sizeof_VkExtent3D()
26 size += vn_sizeof_uint32_t(&val->height); in vn_sizeof_VkExtent3D()
27 size += vn_sizeof_uint32_t(&val->depth); in vn_sizeof_VkExtent3D()
28 return size; in vn_sizeof_VkExtent3D()
50 size_t size = 0; in vn_sizeof_VkExtent3D_partial() local
54 return size; in vn_sizeof_VkExtent3D_partial()
70 size_t size = 0; in vn_sizeof_VkLayerProperties() local
71 size += vn_sizeof_array_size(VK_MAX_EXTENSION_NAME_SIZE); in vn_sizeof_VkLayerProperties()
72 size += vn_sizeof_char_array(val->layerName, VK_MAX_EXTENSION_NAME_SIZE); in vn_sizeof_VkLayerProperties()
[all …]
Dvn_protocol_driver_pipeline.h19 size_t size = 0; in vn_sizeof_VkSpecializationMapEntry() local
20 size += vn_sizeof_uint32_t(&val->constantID); in vn_sizeof_VkSpecializationMapEntry()
21 size += vn_sizeof_uint32_t(&val->offset); in vn_sizeof_VkSpecializationMapEntry()
22 size += vn_sizeof_size_t(&val->size); in vn_sizeof_VkSpecializationMapEntry()
23 return size; in vn_sizeof_VkSpecializationMapEntry()
31 vn_encode_size_t(enc, &val->size); in vn_encode_VkSpecializationMapEntry()
39 size_t size = 0; in vn_sizeof_VkSpecializationInfo() local
40 size += vn_sizeof_uint32_t(&val->mapEntryCount); in vn_sizeof_VkSpecializationInfo()
42 size += vn_sizeof_array_size(val->mapEntryCount); in vn_sizeof_VkSpecializationInfo()
44 size += vn_sizeof_VkSpecializationMapEntry(&val->pMapEntries[i]); in vn_sizeof_VkSpecializationInfo()
[all …]
Dvn_protocol_driver_device.h25 size_t size = 0; in vn_sizeof_VkPhysicalDeviceLimits() local
26 size += vn_sizeof_uint32_t(&val->maxImageDimension1D); in vn_sizeof_VkPhysicalDeviceLimits()
27 size += vn_sizeof_uint32_t(&val->maxImageDimension2D); in vn_sizeof_VkPhysicalDeviceLimits()
28 size += vn_sizeof_uint32_t(&val->maxImageDimension3D); in vn_sizeof_VkPhysicalDeviceLimits()
29 size += vn_sizeof_uint32_t(&val->maxImageDimensionCube); in vn_sizeof_VkPhysicalDeviceLimits()
30 size += vn_sizeof_uint32_t(&val->maxImageArrayLayers); in vn_sizeof_VkPhysicalDeviceLimits()
31 size += vn_sizeof_uint32_t(&val->maxTexelBufferElements); in vn_sizeof_VkPhysicalDeviceLimits()
32 size += vn_sizeof_uint32_t(&val->maxUniformBufferRange); in vn_sizeof_VkPhysicalDeviceLimits()
33 size += vn_sizeof_uint32_t(&val->maxStorageBufferRange); in vn_sizeof_VkPhysicalDeviceLimits()
34 size += vn_sizeof_uint32_t(&val->maxPushConstantsSize); in vn_sizeof_VkPhysicalDeviceLimits()
[all …]
/third_party/ffmpeg/tests/ref/seek/
Dempty-edit-mp41 ret: 0 st: 0 flags:1 dts: 5.000000 pts: 5.000000 pos: 48 size: 2917
2 ret: 0 st: 0 flags:0 dts: 5.100000 pts: 5.100000 pos: 2965 size: 672
3 ret: 0 st: 0 flags:0 dts: 5.200000 pts: 5.200000 pos: 3637 size: 464
4 ret: 0 st: 0 flags:0 dts: 5.300000 pts: 5.300000 pos: 4101 size: 454
6 ret: 0 st: 0 flags:1 dts: 5.000000 pts: 5.000000 pos: 48 size: 2917
7 ret: 0 st: 0 flags:0 dts: 5.100000 pts: 5.100000 pos: 2965 size: 672
8 ret: 0 st: 0 flags:0 dts: 5.200000 pts: 5.200000 pos: 3637 size: 464
9 ret: 0 st: 0 flags:0 dts: 5.300000 pts: 5.300000 pos: 4101 size: 454
11 ret: 0 st: 0 flags:1 dts: 11.000000 pts: 11.000000 pos: 40515 size: 3214
12 ret: 0 st: 0 flags:0 dts: 11.100000 pts: 11.100000 pos: 43729 size: 581
[all …]
Dextra-mp41 ret: 0 st: 0 flags:1 dts:-0.033333 pts: 0.000000 pos: 1287 size: 183
2 ret: 0 st: 0 flags:0 dts: 0.000000 pts: 0.033333 pos: 1470 size: 24
3 ret: 0 st: 0 flags:0 dts: 0.033333 pts: 0.066667 pos: 1494 size: 6779
4 ret: 0 st: 0 flags:0 dts: 0.066667 pts: 0.100000 pos: 8273 size: 11041
6 ret: 0 st: 0 flags:1 dts:-0.033333 pts: 0.000000 pos: 1287 size: 183
7 ret: 0 st: 0 flags:0 dts: 0.000000 pts: 0.033333 pos: 1470 size: 24
8 ret: 0 st: 0 flags:0 dts: 0.033333 pts: 0.066667 pos: 1494 size: 6779
9 ret: 0 st: 0 flags:0 dts: 0.066667 pts: 0.100000 pos: 8273 size: 11041
11 ret: 0 st: 0 flags:1 dts: 101.300000 pts: 101.333333 pos:10982311 size: 67237
12 ret: 0 st: 0 flags:0 dts: 101.333333 pts: 101.433333 pos:11049548 size: 3524
[all …]
Dtest-iibbibb-neg-ctts-mp41 ret: 0 st: 0 flags:1 dts:-2.000000 pts: 0.000000 pos: 48 size: 7804
2 ret: 0 st: 0 flags:1 dts:-1.000000 pts: 3.000000 pos: 7852 size: 7808
3 ret: 0 st: 0 flags:0 dts: 0.000000 pts: 2.000000 pos: 15660 size: 1301
4 ret: 0 st: 0 flags:0 dts: 1.000000 pts: 1.000000 pos: 16961 size: 1114
6 ret: 0 st: 0 flags:1 dts:-2.000000 pts: 0.000000 pos: 48 size: 7804
7 ret: 0 st: 0 flags:1 dts:-1.000000 pts: 3.000000 pos: 7852 size: 7808
8 ret: 0 st: 0 flags:0 dts: 0.000000 pts: 2.000000 pos: 15660 size: 1301
9 ret: 0 st: 0 flags:0 dts: 1.000000 pts: 1.000000 pos: 16961 size: 1114
11 ret: 0 st: 0 flags:1 dts: 2.000000 pts: 6.000000 pos: 18075 size: 7730
12 ret: 0 st: 0 flags:0 dts: 3.000000 pts: 5.000000 pos: 25805 size: 1247
[all …]
Dtest-iibbibb-mp41 ret: 0 st: 0 flags:1 dts:-2.000000 pts: 0.000000 pos: 48 size: 7804
2 ret: 0 st: 0 flags:1 dts:-1.000000 pts: 3.000000 pos: 7852 size: 7808
3 ret: 0 st: 0 flags:0 dts: 0.000000 pts: 2.000000 pos: 15660 size: 1301
4 ret: 0 st: 0 flags:0 dts: 1.000000 pts: 1.000000 pos: 16961 size: 1114
6 ret: 0 st: 0 flags:1 dts:-2.000000 pts: 0.000000 pos: 48 size: 7804
7 ret: 0 st: 0 flags:1 dts:-1.000000 pts: 3.000000 pos: 7852 size: 7808
8 ret: 0 st: 0 flags:0 dts: 0.000000 pts: 2.000000 pos: 15660 size: 1301
9 ret: 0 st: 0 flags:0 dts: 1.000000 pts: 1.000000 pos: 16961 size: 1114
11 ret: 0 st: 0 flags:1 dts: 2.000000 pts: 6.000000 pos: 18075 size: 7730
12 ret: 0 st: 0 flags:0 dts: 3.000000 pts: 5.000000 pos: 25805 size: 1247
[all …]
/third_party/mesa3d/src/util/
Dvma.c33 uint64_t size; member
47 uint64_t start, uint64_t size) in util_vma_heap_init() argument
50 util_vma_heap_free(heap, start, size); in util_vma_heap_init()
70 assert(hole->size > 0); in util_vma_heap_validate()
76 assert(hole->size + hole->offset == 0 || in util_vma_heap_validate()
77 hole->size + hole->offset > hole->offset); in util_vma_heap_validate()
84 assert(hole->size + hole->offset > hole->offset && in util_vma_heap_validate()
85 hole->size + hole->offset < prev_offset); in util_vma_heap_validate()
96 uint64_t offset, uint64_t size) in util_vma_hole_alloc() argument
99 assert(hole->size >= offset - hole->offset + size); in util_vma_hole_alloc()
[all …]
/third_party/vk-gl-cts/framework/referencerenderer/
DrrVertexAttrib.cpp60 inline void readOrder (typename tcu::Vector<DstScalarType, 4>& dst, const int size, const void* ptr) in readOrder() argument
63 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readOrder()
66 if (size >= 2) dst[Order::T1] = DstScalarType(aligned[1]); in readOrder()
67 if (size >= 3) dst[Order::T2] = DstScalarType(aligned[2]); in readOrder()
68 if (size >= 4) dst[Order::T3] = DstScalarType(aligned[3]); in readOrder()
72 inline void readUnormOrder (tcu::Vec4& dst, const int size, const void* ptr) in readUnormOrder() argument
77 deMemcpy(aligned, ptr, size * sizeof(SrcScalarType)); in readUnormOrder()
80 if (size >= 2) dst[Order::T1] = float(aligned[1]) / float(range); in readUnormOrder()
81 if (size >= 3) dst[Order::T2] = float(aligned[2]) / float(range); in readUnormOrder()
82 if (size >= 4) dst[Order::T3] = float(aligned[3]) / float(range); in readUnormOrder()
[all …]
/third_party/pcre2/pcre2/src/sljit/
DsljitExecAllocator.c84 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument
86 return VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); in alloc_chunk()
89 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
91 SLJIT_UNUSED_ARG(size); in free_chunk()
166 static SLJIT_INLINE void* alloc_chunk(sljit_uw size) in alloc_chunk() argument
186 retval = mmap(NULL, size, prot, flags, fd, 0); in alloc_chunk()
190 if (mprotect(retval, size, PROT_READ | PROT_WRITE | PROT_EXEC) < 0) { in alloc_chunk()
191 munmap(retval, size); in alloc_chunk()
195 SLJIT_UPDATE_WX_FLAGS(retval, (uint8_t *)retval + size, 0); in alloc_chunk()
200 static SLJIT_INLINE void free_chunk(void *chunk, sljit_uw size) in free_chunk() argument
[all …]
DsljitProtExecAllocator.c188 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() argument
197 if (ftruncate(fd, size)) { in alloc_chunk()
202 retval = (struct chunk_header *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in alloc_chunk()
209 retval->executable = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_SHARED, fd, 0); in alloc_chunk()
212 munmap((void *)retval, size); in alloc_chunk()
225 static SLJIT_INLINE struct chunk_header* alloc_chunk(sljit_uw size) in alloc_chunk() argument
229 retval = (struct chunk_header *)mmap(NULL, size, in alloc_chunk()
236 retval->executable = mremap(retval, size, NULL, size, MAP_REMAPDUP); in alloc_chunk()
238 munmap((void *)retval, size); in alloc_chunk()
242 if (mprotect(retval->executable, size, PROT_READ | PROT_EXEC) == -1) { in alloc_chunk()
[all …]
/third_party/glslang/Test/baseResults/
Dreflection.vert.out3 named.deadMember1: offset 0, type 8b51, size 1, index 0, binding -1, stages 1
4 anonDeadMember2: offset 64, type 8b52, size 1, index 1, binding -1, stages 1
5 ufDead4: offset -1, type 1406, size 1, index -1, binding -1, stages 1
6 anonMember1: offset 0, type 8b51, size 1, index 1, binding -1, stages 1
7 uf1: offset -1, type 1406, size 1, index -1, binding -1, stages 1
8 uf2: offset -1, type 1406, size 1, index -1, binding -1, stages 1
9 named.member3: offset 32, type 8b52, size 1, index 0, binding -1, stages 1
10 image_ui2D: offset -1, type 9063, size 1, index -1, binding -1, stages 1
11 sampler_2D: offset -1, type 8b5e, size 1, index -1, binding -1, stages 1
12 sampler_2DMSArray: offset -1, type 910b, size 1, index -1, binding -1, stages 1
[all …]
/third_party/curl/tests/unit/
Dunit1302.c54 size_t size = 0; variable
58 rc = Curl_base64_encode(data, "i", 1, &output, &size);
60 fail_unless(size == 4, "size should be 4");
64 rc = Curl_base64_encode(data, "ii", 2, &output, &size);
66 fail_unless(size == 4, "size should be 4");
70 rc = Curl_base64_encode(data, "iii", 3, &output, &size);
72 fail_unless(size == 4, "size should be 4");
76 rc = Curl_base64_encode(data, "iiii", 4, &output, &size);
78 fail_unless(size == 8, "size should be 8");
82 rc = Curl_base64_encode(data, "\xff\x01\xfe\x02", 4, &output, &size);
[all …]
/third_party/e2fsprogs/tests/f_journal/
Dexpect.12 Clearing orphaned inode 37 (uid=0, gid=0, mode=0100600, size=4096)
3 Clearing orphaned inode 90 (uid=0, gid=0, mode=040700, size=1024)
4 Clearing orphaned inode 67 (uid=0, gid=0, mode=0100600, size=4096)
5 Clearing orphaned inode 50 (uid=0, gid=0, mode=0100600, size=4096)
6 Clearing orphaned inode 57 (uid=0, gid=0, mode=040700, size=1024)
7 Clearing orphaned inode 80 (uid=0, gid=0, mode=040700, size=1024)
8 Clearing orphaned inode 45 (uid=0, gid=0, mode=040700, size=1024)
9 Clearing orphaned inode 71 (uid=0, gid=0, mode=0100600, size=4096)
10 Clearing orphaned inode 86 (uid=0, gid=0, mode=040700, size=1024)
11 Clearing orphaned inode 83 (uid=0, gid=0, mode=040700, size=1024)
[all …]
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Ddescriptors.c62 expandable_size_parse (guint64 size, guint8 * ptr, guint32 array_size) in expandable_size_parse() argument
67 while (size > 0 && index < array_size) { in expandable_size_parse()
68 ptr[index++] = (size > 0x7F ? 0x80 : 0x0) | (size & 0x7F); in expandable_size_parse()
69 size = size >> 7; in expandable_size_parse()
100 desc_base_descriptor_init (BaseDescriptor * bd, guint8 tag, guint32 size) in desc_base_descriptor_init() argument
103 expandable_size_parse (size, bd->size, 4); in desc_base_descriptor_init()
215 guint32 size) in desc_dec_specific_info_alloc_data() argument
220 dsid->data = g_new0 (guint8, size); in desc_dec_specific_info_alloc_data()
221 dsid->length = size; in desc_dec_specific_info_alloc_data()
225 desc_base_descriptor_set_size (BaseDescriptor * bd, guint32 size) in desc_base_descriptor_set_size() argument
[all …]
/third_party/optimized-routines/string/bench/
Dmemcpy.c46 typedef struct { uint16_t size; uint16_t freq; } freq_data_t; member
119 int i, j, freq, size, n; in init_copy_distribution() local
122 for (j = 0, size = size_freq[i].size; j < freq; j++) in init_copy_distribution()
123 size_arr[n++] = size; in init_copy_distribution()
127 for (j = 0, size = src_align_freq[i].align; j < freq; j++) in init_copy_distribution()
128 src_align_arr[n++] = size - 1; in init_copy_distribution()
132 for (j = 0, size = dst_align_freq[i].align; j < freq; j++) in init_copy_distribution()
133 dst_align_arr[n++] = size - 1; in init_copy_distribution()
171 for (int size = 16384; size <= SIZE; size *= 2) in main() local
173 size_t copy_size = init_copies (size) * ITERS; in main()
[all …]
/third_party/boost/libs/heap/tools/
Dheap_benchmarks.hpp27 inline test_data make_sequential_test_data(int size) in make_sequential_test_data() argument
29 test_data v(size); in make_sequential_test_data()
30 for (int i = 0; i != size; ++i) in make_sequential_test_data()
35 inline test_data make_test_data(int size) in make_test_data() argument
37 test_data v = make_sequential_test_data(size); in make_test_data()
66 void fill_heap(pri_queue & q, int index, int size, int offset = 0) in fill_heap() argument
70 for (int i = 0; i != size + 1; ++i) { in fill_heap()
81 void fill_heap_with_handles(pri_queue & q, handle_container & handles, int index, int size, int off… in fill_heap_with_handles() argument
85 for (int i = 0; i != size + 1; ++i) { in fill_heap_with_handles()
101 run_sequential_push(int size): in run_sequential_push()
[all …]
/third_party/ffmpeg/libavcodec/
Davpacket.c84 static int packet_alloc(AVBufferRef **buf, int size) in packet_alloc() argument
87 if (size < 0 || size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) in packet_alloc()
90 ret = av_buffer_realloc(buf, size + AV_INPUT_BUFFER_PADDING_SIZE); in packet_alloc()
94 memset((*buf)->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); in packet_alloc()
99 int av_new_packet(AVPacket *pkt, int size) in av_new_packet() argument
102 int ret = packet_alloc(&buf, size); in av_new_packet()
109 pkt->size = size; in av_new_packet()
114 void av_shrink_packet(AVPacket *pkt, int size) in av_shrink_packet() argument
116 if (pkt->size <= size) in av_shrink_packet()
118 pkt->size = size; in av_shrink_packet()
[all …]
/third_party/skia/gm/
Dskbug_257.cpp31 int size) { in rotated_checkerboard_shader() argument
33 bm.allocN32Pixels(2 * size, 2 * size); in rotated_checkerboard_shader()
35 bm.eraseArea(SkIRect::MakeLTRB(0, 0, size, size), c2); in rotated_checkerboard_shader()
36 bm.eraseArea(SkIRect::MakeLTRB(size, size, 2 * size, 2 * size), c2); in rotated_checkerboard_shader()
68 static void test_text(SkCanvas* canvas, SkScalar size, in test_text() argument
75 canvas->drawSimpleText(text, strlen(text), SkTextEncoding::kUTF8, 32, size / 2 + Y, in test_text()
78 exercise_draw_pos_text(canvas, text, 32, size / 2 + Y + lineSpacing, font, type); in test_text()
80 size / 2 + Y + 2 * lineSpacing, font, type); in test_text()
86 const SkScalar size = 256; variable
101 SkRect rect = SkRect::MakeLTRB(8, 8 + translate, size - 8,
[all …]

12345678910>>...569