Home
last modified time | relevance | path

Searched refs:size (Results 526 - 550 of 21346) sorted by relevance

1...<<21222324252627282930>>...854

/third_party/zlib/examples/
H A Dfitblk.c1 /* fitblk.c: example of fitting compressed output to a specified size
8 Use fixed-size, stack-allocated raw buffers
14 /* Approach to just fitting a requested compressed size:
18 nearly the requested output block size. The first pass generates
20 output size plus a specified excess amount (see the EXCESS define
26 The last deflate block of the result will be of a comparable size
31 requested size minus an amount to allow the compressed stream to
34 requested size. Assuming sufficient input and a requested size
39 before filling the requested output size, the
130 unsigned size; /* requested fixed output block size */ main() local
[all...]
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/
H A Dnnrtndk.cpp193 for (int i = 0; i < graphArgs.operands.size(); i++) { in addTesorAndSetTensor()
195 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in addTesorAndSetTensor()
215 paramIndices.size = graphArgs.paramIndices.size(); in OHNNModelAddOperationOne()
218 inputIndices.size = graphArgs.inputIndices.size(); in OHNNModelAddOperationOne()
221 outputIndices.size = graphArgs.outputIndices.size(); in OHNNModelAddOperationOne()
257 inputIndices.size = graphArgs.inputIndices.size(); in OHNNModelSpecifyInputsAndOutputsOne()
[all...]
/test/xts/device_attest/test/fuzztest/devattestadapteroem_fuzzer/
H A Ddevattestadapteroem_fuzzer.cpp50 static void OEMWriteTicketData(const uint8_t* data, size_t size) in OEMWriteTicketData() argument
53 if (static_cast<int32_t>(size) < demandSize) { in OEMWriteTicketData()
62 static void OEMWriteData(const uint8_t* data, size_t size, int32_t type) in OEMWriteData() argument
65 uint32_t remainSize = size - g_baseFuzzPos; in OEMWriteData()
84 void DevattestAdapterOemFuzzTest(const uint8_t* data, size_t size) in DevattestAdapterOemFuzzTest() argument
87 g_baseFuzzSize = size; in DevattestAdapterOemFuzzTest()
90 if (static_cast<int32_t>(size) < demandSize) { in DevattestAdapterOemFuzzTest()
96 OEMWriteTicketData(data, size); in DevattestAdapterOemFuzzTest()
98 OEMWriteData(data, size, randomId); in DevattestAdapterOemFuzzTest()
105 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmsp2dec.c36 int buf_size = avpkt->size; in msp2_decode_frame()
71 int size = bytestream2_get_byte(&gb); in msp2_decode_frame() local
72 if (size) { in msp2_decode_frame()
73 size = FFMIN(size, bytestream2_get_bytes_left(&gb)); in msp2_decode_frame()
74 memcpy(p->data[0] + y * p->linesize[0] + x, gb.buffer, FFMIN(size, width - x)); in msp2_decode_frame()
75 bytestream2_skip(&gb, size); in msp2_decode_frame()
78 size = bytestream2_get_byte(&gb); in msp2_decode_frame()
79 if (!size) in msp2_decode_frame()
82 memset(p->data[0] + y * p->linesize[0] + x, value, FFMIN(size, widt in msp2_decode_frame()
[all...]
H A Dsnappy.c49 static int snappy_literal(GetByteContext *gb, uint8_t *p, int size, int val) in snappy_literal() argument
70 if (size < len) in snappy_literal()
78 static int snappy_copy(uint8_t *start, uint8_t *p, int size, in snappy_copy() argument
83 if (off > p - start || size < len) in snappy_copy()
95 int size, int val) in snappy_copy1()
100 return snappy_copy(start, p, size, off, len); in snappy_copy1()
104 int size, int val) in snappy_copy2()
109 return snappy_copy(start, p, size, off, len); in snappy_copy2()
113 int size, int val) in snappy_copy4()
118 return snappy_copy(start, p, size, of in snappy_copy4()
94 snappy_copy1(GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val) snappy_copy1() argument
103 snappy_copy2(GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val) snappy_copy2() argument
112 snappy_copy4(GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val) snappy_copy4() argument
141 ff_snappy_uncompress(GetByteContext *gb, uint8_t *buf, int64_t *size) ff_snappy_uncompress() argument
[all...]
/third_party/fsverity-utils/lib/
H A Dutils.c18 static void *xmalloc(size_t size) in xmalloc() argument
20 void *p = malloc(size); in xmalloc()
24 size); in xmalloc()
28 void *libfsverity_zalloc(size_t size) in libfsverity_zalloc() argument
30 void *p = xmalloc(size); in libfsverity_zalloc()
34 return memset(p, 0, size); in libfsverity_zalloc()
37 void *libfsverity_memdup(const void *mem, size_t size) in libfsverity_memdup() argument
39 void *p = xmalloc(size); in libfsverity_memdup()
43 return memcpy(p, mem, size); in libfsverity_memdup()
94 bool libfsverity_mem_is_zeroed(const void *mem, size_t size) in libfsverity_mem_is_zeroed() argument
[all...]
/third_party/icu/icu4c/source/test/fuzzer/
H A Ducasemap_fuzzer.cpp19 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument
25 if (size < 7) { in LLVMFuzzerTestOneInput()
36 size = size - 7; in LLVMFuzzerTestOneInput()
38 std::unique_ptr<char[]> fuzzbuff(new char[size]); in LLVMFuzzerTestOneInput()
39 std::memcpy(fuzzbuff.get(), data, size); in LLVMFuzzerTestOneInput()
52 int32_t dst_size = size * 2; in LLVMFuzzerTestOneInput()
57 case 0: ucasemap_utf8ToLower(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
60 case 1: ucasemap_utf8ToUpper(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
63 case 2: ucasemap_utf8ToTitle(csm.get(), dst.get(), dst_size, src, size, in LLVMFuzzerTestOneInput()
[all...]
/third_party/libuv/src/unix/
H A Dos390-proctitle.c41 size_t size; in uv_setup_args() local
49 size = 0; in uv_setup_args()
51 size += strlen(argv[i]) + 1; in uv_setup_args()
54 size += (argc + 1) * sizeof(char*); in uv_setup_args()
56 new_argv = uv__malloc(size); in uv_setup_args()
63 size = strlen(argv[i]) + 1; in uv_setup_args()
64 memcpy(s, argv[i], size); in uv_setup_args()
66 s += size; in uv_setup_args()
105 int uv_get_process_title(char* buffer, size_t size) { in uv_get_process_title() argument
108 if (buffer == NULL || size in uv_get_process_title()
[all...]
H A Dproctitle.c49 size_t size; in uv_setup_args() local
61 size = pt.cap; in uv_setup_args()
63 size += strlen(argv[i]) + 1; in uv_setup_args()
66 size += (argc + 1) * sizeof(char*); in uv_setup_args()
68 new_argv = uv__malloc(size); in uv_setup_args()
75 size = pt.cap; in uv_setup_args()
79 size = strlen(argv[i]) + 1; in uv_setup_args()
81 memcpy(s, argv[i], size); in uv_setup_args()
83 s += size; in uv_setup_args()
87 pt.cap = argv[i - 1] + size in uv_setup_args()
127 uv_get_process_title(char* buffer, size_t size) uv_get_process_title() argument
[all...]
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
H A D7-1.c45 ssize_t size = 1024; in main() local
46 char data[size]; in main()
59 memset(data, 'a', size); in main()
60 if (write(fd, data, size) != size) { in main()
65 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
74 if (msync(pa, size, MS_SYNC) != 0) { in main()
79 munmap(pa, size); in main()
82 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
93 munmap(pa, size); in main()
[all...]
/third_party/node/deps/uv/src/unix/
H A Dos390-proctitle.c41 size_t size; in uv_setup_args() local
49 size = 0; in uv_setup_args()
51 size += strlen(argv[i]) + 1; in uv_setup_args()
54 size += (argc + 1) * sizeof(char*); in uv_setup_args()
56 new_argv = uv__malloc(size); in uv_setup_args()
63 size = strlen(argv[i]) + 1; in uv_setup_args()
64 memcpy(s, argv[i], size); in uv_setup_args()
66 s += size; in uv_setup_args()
105 int uv_get_process_title(char* buffer, size_t size) { in uv_get_process_title() argument
108 if (buffer == NULL || size in uv_get_process_title()
[all...]
/third_party/skia/gm/
H A Dtransparency.cpp50 static sk_sp<SkShader> create_checkerboard_shader(SkColor c1, SkColor c2, int size) { in create_checkerboard_shader() argument
52 bm.allocN32Pixels(2 * size, 2 * size); in create_checkerboard_shader()
54 bm.eraseArea(SkIRect::MakeLTRB(0, 0, size, size), c2); in create_checkerboard_shader()
55 bm.eraseArea(SkIRect::MakeLTRB(size, size, 2 * size, 2 * size), c2); in create_checkerboard_shader()
60 static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) { in checkerboard() argument
[all...]
/third_party/qrcodegen/java/src/main/java/io/nayuki/qrcodegen/
H A DQrCode.java207 * This determines the size of this barcode. */
212 public final int size; field in QrCode
222 // Private grids of modules/pixels, with dimensions of size*size:
255 size = ver * 4 + 17; in QrCode()
258 modules = new boolean[size][size]; // Initially all light in QrCode()
259 isFunction = new boolean[size][size]; in QrCode()
296 * @param x the x coordinate, where 0 is the left edge and size
[all...]
/third_party/alsa-lib/src/topology/
H A Ddapm.c80 tplg_dbg("\tparent size: %d + %d -> %d, priv size -> %d", in copy_dapm_control()
81 elem->size, ref->size, elem->size + ref->size, in copy_dapm_control()
82 widget->priv.size); in copy_dapm_control()
84 widget = realloc(widget, elem->size + ref->size); in copy_dapm_control()
91 memcpy((void*)widget + elem->size, re in copy_dapm_control()
872 tplg_decode_dapm_widget(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_dapm_widget() argument
1040 tplg_decode_dapm_graph(snd_tplg_t *tplg, size_t pos, struct snd_soc_tplg_hdr *hdr, void *bin, size_t size) tplg_decode_dapm_graph() argument
[all...]
/third_party/skia/src/utils/
H A DSkJSON.cpp83 static void* MakeVector(const void* src, size_t size, SkArenaAlloc& alloc) { in MakeVector() argument
84 // The Ts are already in memory, so their size should be safe. in MakeVector()
85 const auto total_size = sizeof(size_t) + size * sizeof(T) + extra_alloc_size; in MakeVector()
88 *size_ptr = size; in MakeVector()
89 sk_careful_memcpy(size_ptr + 1, src, size * sizeof(T)); in MakeVector()
94 ArrayValue::ArrayValue(const Value* src, size_t size, SkArenaAlloc& alloc) { in ArrayValue() argument
95 this->init_tagged_pointer(Tag::kArray, MakeVector<Value>(src, size, alloc)); in ArrayValue()
107 // null terminator when size == max_len (this works 'cause kShortString == 0).
119 FastString(const char* src, size_t size, const char* eos, SkArenaAlloc& alloc) { in FastString() argument
122 if (size > kMaxInlineStringSiz in FastString()
142 initLongString(const char* src, size_t size, SkArenaAlloc& alloc) initLongString() argument
151 initShortString(const char* src, size_t size) initShortString() argument
159 initFastShortString(const char* src, size_t size) initFastShortString() argument
187 StringValue(const char* src, size_t size, SkArenaAlloc& alloc) StringValue() argument
191 ObjectValue(const Member* src, size_t size, SkArenaAlloc& alloc) ObjectValue() argument
302 parse(const char* p, size_t size) parse() argument
571 pushObjectKey(const char* key, size_t size, const char* eos) pushObjectKey() argument
590 pushString(const char* s, size_t size, const char* eos) pushString() argument
914 DOM(const char* data, size_t size) DOM() argument
[all...]
/third_party/backends/backend/
H A Dteco1.c272 size_t size, max_size = 0; in max_string_size() local
277 size = strlen (strings[i]) + 1; in max_string_size()
278 if (size > max_size) in max_string_size()
280 max_size = size; in max_string_size()
412 size_t size; in teco_identify_scanner() local
417 size = 5; in teco_identify_scanner()
418 MKSCSI_INQUIRY (cdb, size); in teco_identify_scanner()
420 NULL, 0, dev->buffer, &size); in teco_identify_scanner()
457 size = dev->buffer[4] + 5; /* total length of the inquiry data */ in teco_identify_scanner()
459 MKSCSI_INQUIRY (cdb, size); in teco_identify_scanner()
530 size_t size; teco_get_inquiry_82() local
620 size_t size; teco_mode_select() local
644 size_t size; /* significant size of window */ teco_set_window() local
726 size_t size; get_filled_data_length() local
867 size_t size; teco_send_gamma() local
1281 size_t size; teco_fill_image() local
1397 size_t size; teco_copy_raw_to_frontend() local
1952 size_t size; sane_start() local
2098 size_t size; sane_read() local
[all...]
/third_party/ffmpeg/libavformat/
H A Dwavdec.c76 { "max_size", "max size of single packet", OFFSET(max_size), AV_OPT_TYPE_INT, { .i64 = 4096 }, 1024, 1 << 22, DEC },
131 /* return the size of the found tag */
135 int64_t size; in find_tag() local
140 size = next_tag(pb, &tag, wav->rifx); in find_tag()
143 wav_seek_tag(wav, pb, size, SEEK_CUR); in find_tag()
145 return size; in find_tag()
176 static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream *st) in wav_parse_fmt_tag() argument
183 ret = ff_get_wav_header(s, pb, st->codecpar, size, wav->rifx); in wav_parse_fmt_tag()
195 static int wav_parse_xma2_tag(AVFormatContext *s, int64_t size, AVStream *st) in wav_parse_xma2_tag() argument
200 if (size < 3 in wav_parse_xma2_tag()
259 wav_parse_bext_tag(AVFormatContext *s, int64_t size) wav_parse_bext_tag() argument
343 int64_t size, av_uninit(data_size); wav_read_header() local
691 int64_t size; find_guid() local
707 int ret, size; wav_read_packet() local
867 int64_t size, data_ofs = 0; w64_read_header() local
[all...]
H A Dbmv.c37 int size; member
83 c->size = avio_rl24(s->pb); in bmv_read_packet()
84 if (!c->size) in bmv_read_packet()
86 if ((err = av_reallocp(&c->packet, c->size + 1)) < 0) in bmv_read_packet()
89 if (avio_read(s->pb, c->packet + 1, c->size) != c->size) in bmv_read_packet()
93 if (audio_size >= c->size) { in bmv_read_packet()
94 av_log(s, AV_LOG_ERROR, "Reported audio size %d is bigger than packet size (%d)\n", in bmv_read_packet()
95 audio_size, c->size); in bmv_read_packet()
[all...]
/third_party/mesa3d/src/gallium/drivers/r600/
H A Dradeon_uvd.c235 /* calculate size of reference picture buffer */
240 // always align them to MB size for dpb calculation in calc_dpb_size()
247 // aligned size of a single frame in calc_dpb_size()
663 int size = 0, saved_size, len_pos, i; in get_mjpeg_slice_header() local
668 buf[size++] = 0xff; in get_mjpeg_slice_header()
669 buf[size++] = 0xd8; in get_mjpeg_slice_header()
672 buf[size++] = 0xff; in get_mjpeg_slice_header()
673 buf[size++] = 0xdb; in get_mjpeg_slice_header()
675 len_pos = size++; in get_mjpeg_slice_header()
676 size in get_mjpeg_slice_header()
[all...]
/third_party/littlefs/scripts/
H A Dtracebd.py87 # did terminal size change?
343 size=1,
355 self.size = size
360 def _op(self, f, block=None, off=None, size=None):
365 off, size = 0, self.size
366 elif size is None:
367 off, size = 0, off
371 size
[all...]
/third_party/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_allocator_module/
H A Dtest_per_cpu_allocator_module.c30 size_t size; member
94 static void fill_area(void *p, size_t size, unsigned int cmdno) in fill_area() argument
101 size_t left = size; in fill_area()
110 static void verify_area(void *p, size_t size, unsigned int cmdno) in verify_area() argument
118 size_t left = size; in verify_area()
123 ("MISMATCH: cmdno=%u size=%zu cpu=%u off=%zu p=%p\n", in verify_area()
124 cmdno, size, cpu, size - left, p); in verify_area()
140 verify_area(ptrs[cmdno], cmds[cmdno].size, cmdno); in free_cmd()
152 if (cmd->size) { in run_test()
[all...]
/third_party/musl/src/malloc/liteos_a/user_debug/
H A Dbacktrace.c50 int backtrace(void **buffer, int size) in backtrace() argument
54 if ((buffer == NULL) || (size <= 0)) { in backtrace()
59 state.end = (_Unwind_Word **)(buffer + size); in backtrace()
65 char **backtrace_symbols(void *const *buffer, int size) in backtrace_symbols() argument
75 if ((buffer == NULL) || (size <= 0)) { in backtrace_symbols()
78 str_location = (char **)malloc(size * sizeof(char *)); in backtrace_symbols()
82 memset(str_location, 0, size * sizeof(char *)); in backtrace_symbols()
83 for (i = 0; i < size; ++i) { in backtrace_symbols()
99 string = (char **)malloc(total_size + (size * sizeof(char *))); in backtrace_symbols()
103 memset(string, 0, total_size + (size * sizeo in backtrace_symbols()
[all...]
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
H A Dbacktrace.c35 int backtrace(void **buffer, int size) in backtrace() argument
39 if ((buffer == NULL) || (size <= 0)) { in backtrace()
44 state.end = (_Unwind_Word **)(buffer + size); in backtrace()
50 char **backtrace_symbols(void *const *buffer, int size) in backtrace_symbols() argument
60 if ((buffer == NULL) || (size <= 0)) { in backtrace_symbols()
63 str_location = (char **)malloc(size * sizeof(char *)); in backtrace_symbols()
67 memset(str_location, 0, size * sizeof(char *)); in backtrace_symbols()
68 for (i = 0; i < size; ++i) { in backtrace_symbols()
84 string = (char **)malloc(total_size + (size * sizeof(char *))); in backtrace_symbols()
88 memset(string, 0, total_size + (size * sizeo in backtrace_symbols()
[all...]
/third_party/node/deps/cares/src/lib/
H A Dinet_ntop.c42 static const char *inet_ntop4(const unsigned char *src, char *dst, size_t size);
43 static const char *inet_ntop6(const unsigned char *src, char *dst, size_t size);
46 * inet_ntop(af, src, dst, size)
59 ares_socklen_t size) in ares_inet_ntop()
63 return (inet_ntop4(src, dst, (size_t)size)); in ares_inet_ntop()
65 return (inet_ntop6(src, dst, (size_t)size)); in ares_inet_ntop()
74 * inet_ntop4(src, dst, size)
84 static const char *inet_ntop4(const unsigned char *src, char *dst, size_t size) in inet_ntop4() argument
90 size) { in inet_ntop4()
94 ares_strcpy(dst, tmp, size); in inet_ntop4()
58 ares_inet_ntop(int af, const void *src, char *dst, ares_socklen_t size) ares_inet_ntop() argument
104 inet_ntop6(const unsigned char *src, char *dst, size_t size) inet_ntop6() argument
209 ares_inet_ntop(int af, const void *src, char *dst, ares_socklen_t size) ares_inet_ntop() argument
[all...]
/third_party/libfuse/example/
H A Dcuse_client.c55 " s [SIZE] : get size if SIZE is omitted, set size otherwise\n"
60 static int do_rw(int fd, int is_read, size_t size, off_t offset, in do_rw() argument
66 arg.buf = calloc(1, size); in do_rw()
68 fprintf(stderr, "failed to allocated %zu bytes\n", size); in do_rw()
73 arg.size = size; in do_rw()
78 arg.size = fread(arg.buf, 1, size, stdin); in do_rw()
79 fprintf(stderr, "Writing %zu bytes\n", arg.size); in do_rw()
96 size_t size, prev_size = 0, new_size = 0; main() local
[all...]

Completed in 15 milliseconds

1...<<21222324252627282930>>...854