/external/lz4/examples/ |
D | compress_functions.c | 115 const size_t src_size, in bench() argument 132 rv = LZ4_compress_default(src, dst, src_size, max_dst_size); in bench() 139 LZ4_compress_default(src, dst, src_size, max_dst_size); in bench() 145 rv = LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench() 152 LZ4_compress_fast(src, dst, src_size, max_dst_size, acceleration); in bench() 158 rv = LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench() 165 LZ4_compress_fast_extState(&state, src, dst, src_size, max_dst_size, acceleration); in bench() 191 rv = LZ4_decompress_safe(src, dst, comp_size, src_size); in bench() 194 if (memcmp(known_good_dst, dst, src_size) != 0) in bench() 198 LZ4_decompress_safe(src, dst, comp_size, src_size); in bench() [all …]
|
D | simple_buffer.c | 43 const int src_size = (int)(strlen(src) + 1); in main() local 45 const int max_dst_size = LZ4_compressBound(src_size); in main() 53 …const int compressed_data_size = LZ4_compress_default(src, compressed_data, src_size, max_dst_size… in main() 59 (float) compressed_data_size/src_size); in main() 76 char* const regen_buffer = malloc(src_size); in main() 82 …mpressed_size = LZ4_decompress_safe(compressed_data, regen_buffer, compressed_data_size, src_size); in main() 90 if (decompressed_size != src_size) in main() 95 if (memcmp(src, regen_buffer, src_size) != 0) in main()
|
/external/fastrpc/src/ |
D | std_mem.c | 72 int std_memscpy(void *dst, int dst_size, const void *src, int src_size){ in std_memscpy() argument 75 if(dst_size <0 || src_size <0){ in std_memscpy() 81 return memscpy(dst,dst_size,src,src_size); in std_memscpy() 85 copy_size = (dst_size <= src_size)? dst_size : src_size; in std_memscpy() 90 int std_memsmove(void *dst, int dst_size, const void *src, int src_size){ in std_memsmove() argument 93 if(dst_size <0 || src_size <0){ in std_memsmove() 99 return memsmove(dst,dst_size,src,src_size); in std_memsmove() 103 copy_size = (dst_size <= src_size)? dst_size : src_size; in std_memsmove()
|
/external/pdfium/core/fxcodec/jpx/ |
D | jpx_decode_utils.cpp | 20 if (!srcData || !srcData->src_data || srcData->src_size == 0) in opj_read_from_memory() 24 if (srcData->offset >= srcData->src_size) in opj_read_from_memory() 27 OPJ_SIZE_T bufferLength = srcData->src_size - srcData->offset; in opj_read_from_memory() 36 if (!srcData || !srcData->src_data || srcData->src_size == 0) in opj_skip_from_memory() 52 srcData->offset = srcData->src_size; in opj_skip_from_memory() 61 std::min(srcData->offset + checked_nb_bytes, srcData->src_size); in opj_skip_from_memory() 68 if (!srcData || !srcData->src_data || srcData->src_size == 0) in opj_seek_from_memory() 81 srcData->offset = srcData->src_size; in opj_seek_from_memory() 86 srcData->offset = std::min(checked_nb_bytes, srcData->src_size); in opj_seek_from_memory()
|
D | jpx_decode_utils.h | 22 : src_data(data), src_size(size), offset(0) {} in DecodeData() 25 OPJ_SIZE_T src_size; member
|
/external/llvm/test/Transforms/MemCpyOpt/ |
D | memset-memcpy-redundant-memset.ll | 6 ; CHECK-DAG: [[DST:%[0-9]+]] = getelementptr i8, i8* %dst, i64 %src_size 7 ; CHECK-DAG: [[ULE:%[0-9]+]] = icmp ule i64 %dst_size, %src_size 8 ; CHECK-DAG: [[SIZEDIFF:%[0-9]+]] = sub i64 %dst_size, %src_size 11 ; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i32 1, i1 fal… 13 define void @test(i8* %src, i64 %src_size, i8* %dst, i64 %dst_size, i8 %c) { 15 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i32 1, i1 false) 21 ; CHECK-DAG: [[DST:%[0-9]+]] = getelementptr i8, i8* %dst, i64 %src_size 22 ; CHECK-DAG: [[ULE:%[0-9]+]] = icmp ule i64 [[DSTSIZE]], %src_size 23 ; CHECK-DAG: [[SIZEDIFF:%[0-9]+]] = sub i64 [[DSTSIZE]], %src_size 26 ; CHECK-NEXT: call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i32 1, i1 fal… [all …]
|
/external/webrtc/common_audio/ |
D | audio_converter.cc | 35 size_t src_size, in Convert() argument 38 CheckSizes(src_size, dst_capacity); in Convert() 56 size_t src_size, in Convert() argument 59 CheckSizes(src_size, dst_capacity); in Convert() 78 size_t src_size, in Convert() argument 81 CheckSizes(src_size, dst_capacity); in Convert() 107 size_t src_size, in Convert() argument 110 CheckSizes(src_size, dst_capacity); in Convert() 136 size_t src_size, in Convert() argument 139 converters_.front()->Convert(src, src_size, buffers_.front()->channels(), in Convert() [all …]
|
D | audio_converter.h | 43 size_t src_size, 60 void CheckSizes(size_t src_size, size_t dst_capacity) const;
|
/external/libaom/libaom/av1/encoder/ |
D | hash_motion.c | 251 const int src_size = block_size >> 1; in av1_generate_block_hash_value() local 261 p[1] = src_pic_block_hash[0][pos + src_size]; in av1_generate_block_hash_value() 262 p[2] = src_pic_block_hash[0][pos + src_size * pic_width]; in av1_generate_block_hash_value() 263 p[3] = src_pic_block_hash[0][pos + src_size * pic_width + src_size]; in av1_generate_block_hash_value() 268 p[1] = src_pic_block_hash[1][pos + src_size]; in av1_generate_block_hash_value() 269 p[2] = src_pic_block_hash[1][pos + src_size * pic_width]; in av1_generate_block_hash_value() 270 p[3] = src_pic_block_hash[1][pos + src_size * pic_width + src_size]; in av1_generate_block_hash_value() 277 src_pic_block_same_info[0][pos + src_size] && in av1_generate_block_hash_value() 278 src_pic_block_same_info[0][pos + src_size * pic_width] && in av1_generate_block_hash_value() 279 src_pic_block_same_info[0][pos + src_size * pic_width + quad_size] && in av1_generate_block_hash_value() [all …]
|
/external/zstd/contrib/linux-kernel/ |
D | zstd_decompress_module.c | 49 const void *src, size_t src_size) in zstd_decompress_dctx() argument 51 return ZSTD_decompressDCtx(dctx, dst, dst_capacity, src, src_size); in zstd_decompress_dctx() 93 size_t zstd_find_frame_compressed_size(const void *src, size_t src_size) in zstd_find_frame_compressed_size() argument 95 return ZSTD_findFrameCompressedSize(src, src_size); in zstd_find_frame_compressed_size() 100 size_t src_size) in zstd_get_frame_params() argument 103 const size_t ret = ZSTD_getFrameHeader(&h, src, src_size); in zstd_get_frame_params()
|
D | linux_zstd.h | 38 size_t zstd_compress_bound(size_t src_size); 189 const void *src, size_t src_size, const struct zstd_parameters *parameters); 229 const void *src, size_t src_size); 430 size_t zstd_find_frame_compressed_size(const void *src, size_t src_size); 457 size_t src_size);
|
/external/llvm-project/openmp/runtime/src/ |
D | kmp_safe_c_api.h | 64 char const *src, size_t src_size) { in __kmp_strncpy_truncate() argument 65 if (src_size >= buf_size) { in __kmp_strncpy_truncate() 66 src_size = buf_size - 1; in __kmp_strncpy_truncate() 68 KMP_STRNCPY_S(buffer, buf_size, src, src_size); in __kmp_strncpy_truncate() 69 buffer[src_size] = '\0'; in __kmp_strncpy_truncate()
|
/external/flatbuffers/tests/ |
D | test_builder.h | 74 auto src_size = src.GetSize(); 77 TEST_EQ_FUNC(b1.GetSize(), src_size); 95 size_t src_size = src.GetSize(); 98 TEST_EQ_FUNC(src_size, 0); 99 TEST_EQ_FUNC(src_size, dst_size); 105 size_t src_size = src.GetSize(); 107 TEST_EQ_FUNC(src_size, dst.GetSize()); 124 auto src_size = src.GetSize(); 126 TEST_EQ_FUNC(dst.GetSize(), src_size); 146 auto src_size = src.GetSize(); [all …]
|
/external/webrtc/rtc_base/ |
D | bounded_inline_vector_impl.h | 61 void CopyElements(const T* src_data, int src_size, T* dst_data, int* dst_size) { in CopyElements() argument 63 std::memcpy(dst_data, src_data, src_size * sizeof(T)); in CopyElements() 65 std::uninitialized_copy_n(src_data, src_size, dst_data); in CopyElements() 67 *dst_size = src_size; in CopyElements() 73 void MoveElements(T* src_data, int src_size, T* dst_data, int* dst_size) { in MoveElements() argument 75 std::memcpy(dst_data, src_data, src_size * sizeof(T)); in MoveElements() 78 for (int i = 0; i < src_size; ++i) { in MoveElements() 84 *dst_size = src_size; in MoveElements()
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_register_coalesce.cpp | 195 int src_size = 0; in register_coalesce() local 216 src_size = alloc.sizes[inst->src[0].nr]; in register_coalesce() 217 assert(src_size <= MAX_VGRF_SIZE); in register_coalesce() 219 channels_remaining = src_size; in register_coalesce() 229 for (int i = 0; i < src_size; i++) { in register_coalesce() 256 for (int i = 0; i < src_size; i++) { in register_coalesce() 279 for (int i = 0; i < src_size; i++) { in register_coalesce() 321 for (int i = 0; i < src_size; i++) { in register_coalesce()
|
/external/mesa3d/src/util/format/ |
D | u_format_pack.py | 357 src_size = src_channel.size 362 if src_type == FLOAT and src_size == 16: 364 src_size = 32 368 …if src_type == UNSIGNED and src_norm and src_size == 8 and dst_channel.type == FLOAT and dst_chann… 370 …if src_type == FLOAT and src_size == 32 and dst_channel.type == UNSIGNED and dst_channel.norm and … 392 …tmp_native_type = intermediate_native_type(src_size + dst_channel.size, src_channel.sign and dst_c… 402 if src_size <= 23: 406 src_size = 32 410 src_size = 64 413 if src_size <= 23 or dst_channel.size <= 32: [all …]
|
/external/llvm-project/llvm/test/Transforms/MemCpyOpt/ |
D | memset-memcpy-redundant-memset.ll | 7 define void @test(i8* %src, i64 %src_size, i8* noalias %dst, i64 %dst_size, i8 %c) { 18 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i1 false) 22 define void @test_different_types_i32_i64(i8* noalias %dst, i8* %src, i32 %dst_size, i64 %src_size,… 34 call void @llvm.memcpy.p0i8.p0i8.i64(i8* %dst, i8* %src, i64 %src_size, i1 false) 38 … @test_different_types_i128_i32(i8* noalias %dst, i8* %src, i128 %dst_size, i32 %src_size, i8 %c) { 50 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %src, i32 %src_size, i1 false) 54 … @test_different_types_i32_i128(i8* noalias %dst, i8* %src, i32 %dst_size, i128 %src_size, i8 %c) { 66 call void @llvm.memcpy.p0i8.p0i8.i128(i8* %dst, i8* %src, i128 %src_size, i1 false) 70 define void @test_different_types_i64_i32(i8* noalias %dst, i8* %src, i64 %dst_size, i32 %src_size,… 82 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dst, i8* %src, i32 %src_size, i1 false) [all …]
|
/external/pdfium/testing/fuzzers/ |
D | pdf_lzw_fuzzer.cc | 16 size_t src_size, in LZWFuzz() argument 26 std::vector<uint8_t> dest_buf(compressions_ratio * src_size); in LZWFuzz() 31 decompressor->Decode(src_buf, src_size, dest_buf.data(), &dest_size)) { in LZWFuzz()
|
/external/llvm-project/lldb/source/Plugins/Process/Linux/ |
D | NativeRegisterContextLinux.cpp | 67 const uint32_t src_size = reg_value.GetAsMemoryData( in WriteRegisterRaw() local 69 if (error.Success() && src_size && (src_size < dest_size)) { in WriteRegisterRaw() 71 memcpy(dst + (reg_info->byte_offset & 0x1), src, src_size); in WriteRegisterRaw()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/ |
D | conv_constants.cc | 51 std::string GenerateConv(int src_size, int dst_size, bool use_dot_conv, in GenerateConv() argument 58 const std::string src_postfix = src_postfixes[src_size - 1]; in GenerateConv() 68 for (int i = 0; i < src_size; ++i) { in GenerateConv() 73 if (src_size != 1) { in GenerateConv() 83 for (int i = 0; i < src_size; ++i) { in GenerateConv() 85 if (src_size != 1) { in GenerateConv()
|
/external/tensorflow/tensorflow/lite/java/src/main/native/ |
D | tensor_jni.cc | 165 const void* src, size_t src_size, jarray dst) { in ReadOneDimensionalArray() argument 168 if (size > src_size) { in ReadOneDimensionalArray() 173 size, src_size); in ReadOneDimensionalArray() 216 size_t src_size, int dims_left, jarray dst) { in ReadMultiDimensionalArray() argument 218 return ReadOneDimensionalArray(env, data_type, src, src_size, dst); in ReadMultiDimensionalArray() 226 src_size - size, dims_left - 1, row); in ReadMultiDimensionalArray() 345 size_t src_size = ElementByteSize(type); in WriteScalar() local 346 if (src_size != dst_size) { in WriteScalar() 350 src_size, dst_size); in WriteScalar() 363 memcpy(dst, &v, src_size); \ in WriteScalar()
|
/external/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
D | RegisterContextPOSIXProcessMonitor_mips64.cpp | 89 const uint32_t src_size = value.GetAsMemoryData( in WriteRegister() local 91 if (error.Success() && src_size && (src_size < dest_size)) { in WriteRegister() 93 memcpy(dst + (reg_info->byte_offset & 0x1), src, src_size); in WriteRegister()
|
D | RegisterContextPOSIXProcessMonitor_arm.cpp | 89 const uint32_t src_size = value.GetAsMemoryData( in WriteRegister() local 91 if (error.Success() && src_size && (src_size < dest_size)) { in WriteRegister() 93 memcpy(dst + (reg_info->byte_offset & 0x1), src, src_size); in WriteRegister()
|
/external/pdfium/core/fpdfapi/parser/ |
D | fpdf_parser_utility.cpp | 98 size_t src_size = orig.GetLength(); in PDF_NameDecode() local 103 pdfium::span<char> pDest = result.GetBuffer(src_size); in PDF_NameDecode() 104 for (size_t i = 0; i < src_size; i++) { in PDF_NameDecode() 105 if (orig[i] == '#' && i + 2 < src_size) { in PDF_NameDecode()
|
/external/pdfium/core/fxge/win32/ |
D | cfx_psrenderer.cpp | 328 uint32_t src_size = height * pitch; in DrawDIBits() local 330 FX_Alloc(uint8_t, src_size)); in DrawDIBits() 642 uint32_t src_size, in PSCompressData() argument 647 *output_size = src_size; in PSCompressData() 649 if (src_size < 1024) in PSCompressData() 653 uint32_t dest_size = src_size; in PSCompressData() 656 if (m_pEncoderIface->pFlateEncodeFunc(src_buf, src_size, &dest_buf_unique, in PSCompressData() 663 if (m_pEncoderIface->pRunLengthEncodeFunc({src_buf, src_size}, in PSCompressData() 669 if (dest_size < src_size) { in PSCompressData()
|