Home
last modified time | relevance | path

Searched refs:dst_size (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm/test/Transforms/MemCpyOpt/
Dmemset-memcpy-redundant-memset.ll7 ; CHECK-DAG: [[ULE:%[0-9]+]] = icmp ule i64 %dst_size, %src_size
8 ; CHECK-DAG: [[SIZEDIFF:%[0-9]+]] = sub i64 %dst_size, %src_size
13 define void @test(i8* %src, i64 %src_size, i8* %dst, i64 %dst_size, i8 %c) {
14 call void @llvm.memset.p0i8.i64(i8* %dst, i8 %c, i64 %dst_size, i32 1, i1 false)
20 ; CHECK-DAG: [[DSTSIZE:%[0-9]+]] = zext i32 %dst_size to i64
28 define void @test_different_types_i32_i64(i8* %dst, i8* %src, i32 %dst_size, i64 %src_size, i8 %c) {
29 call void @llvm.memset.p0i8.i32(i8* %dst, i8 %c, i32 %dst_size, i32 1, i1 false)
37 ; CHECK-DAG: [[ULE:%[0-9]+]] = icmp ule i128 %dst_size, [[SRCSIZE]]
38 ; CHECK-DAG: [[SIZEDIFF:%[0-9]+]] = sub i128 %dst_size, [[SRCSIZE]]
43 define void @test_different_types_i128_i32(i8* %dst, i8* %src, i128 %dst_size, i32 %src_size, i8 %c…
[all …]
/external/mesa3d/src/mesa/main/
Dformat_utils.h162 _mesa_unsigned_to_unsigned(unsigned src, unsigned dst_size) in _mesa_unsigned_to_unsigned() argument
164 return MIN2(src, MAX_UINT(dst_size)); in _mesa_unsigned_to_unsigned()
168 _mesa_unsigned_to_signed(unsigned src, unsigned dst_size) in _mesa_unsigned_to_signed() argument
170 return MIN2(src, (unsigned)MAX_INT(dst_size)); in _mesa_unsigned_to_signed()
174 _mesa_signed_to_signed(int src, unsigned dst_size) in _mesa_signed_to_signed() argument
176 return CLAMP(src, MIN_INT(dst_size), MAX_INT(dst_size)); in _mesa_signed_to_signed()
180 _mesa_signed_to_unsigned(int src, unsigned dst_size) in _mesa_signed_to_unsigned() argument
182 return CLAMP(src, 0, MAX_UINT(dst_size)); in _mesa_signed_to_unsigned()
/external/boringssl/src/crypto/buf/
Dbuf.c195 size_t BUF_strlcpy(char *dst, const char *src, size_t dst_size) { in BUF_strlcpy() argument
198 for (; dst_size > 1 && *src; dst_size--) { in BUF_strlcpy()
203 if (dst_size) { in BUF_strlcpy()
210 size_t BUF_strlcat(char *dst, const char *src, size_t dst_size) { in BUF_strlcat() argument
212 for (; dst_size > 0 && *dst; dst_size--, dst++) { in BUF_strlcat()
215 return l + BUF_strlcpy(dst, src, dst_size); in BUF_strlcat()
/external/strace/tests/
Dhexquote_strndup.c39 const size_t dst_size = 4 * src_len + 1; in hexquote_strndup() local
40 assert(dst_size > src_len); in hexquote_strndup()
42 char *dst = malloc(dst_size); in hexquote_strndup()
44 perror_msg_and_fail("malloc(%zu)", dst_size); in hexquote_strndup()
Dhexdump_strdup.c39 size_t dst_size = 3 * len + 2; in hexdump_memdup() local
40 assert(dst_size > len); in hexdump_memdup()
42 char *dst = malloc(dst_size); in hexdump_memdup()
44 perror_msg_and_fail("malloc(%zu)", dst_size); in hexdump_memdup()
/external/strace/tests-mx32/
Dhexquote_strndup.c39 const size_t dst_size = 4 * src_len + 1; in hexquote_strndup() local
40 assert(dst_size > src_len); in hexquote_strndup()
42 char *dst = malloc(dst_size); in hexquote_strndup()
44 perror_msg_and_fail("malloc(%zu)", dst_size); in hexquote_strndup()
Dhexdump_strdup.c39 size_t dst_size = 3 * len + 2; in hexdump_memdup() local
40 assert(dst_size > len); in hexdump_memdup()
42 char *dst = malloc(dst_size); in hexdump_memdup()
44 perror_msg_and_fail("malloc(%zu)", dst_size); in hexdump_memdup()
/external/strace/tests-m32/
Dhexquote_strndup.c39 const size_t dst_size = 4 * src_len + 1; in hexquote_strndup() local
40 assert(dst_size > src_len); in hexquote_strndup()
42 char *dst = malloc(dst_size); in hexquote_strndup()
44 perror_msg_and_fail("malloc(%zu)", dst_size); in hexquote_strndup()
Dhexdump_strdup.c39 size_t dst_size = 3 * len + 2; in hexdump_memdup() local
40 assert(dst_size > len); in hexdump_memdup()
42 char *dst = malloc(dst_size); in hexdump_memdup()
44 perror_msg_and_fail("malloc(%zu)", dst_size); in hexdump_memdup()
/external/tensorflow/tensorflow/contrib/lite/java/src/main/native/
Dtensor_jni.cc33 void* dst, size_t dst_size) { in writeOneDimensionalArray() argument
37 if (to_copy > dst_size) { in writeOneDimensionalArray()
40 to_copy, dst_size); in writeOneDimensionalArray()
174 size_t writeByteBuffer(JNIEnv* env, jobject object, char** dst, int dst_size) { in writeByteBuffer() argument
182 return dst_size; in writeByteBuffer()
186 int dims_left, char** dst, int dst_size) { in writeMultiDimensionalArray() argument
188 return writeOneDimensionalArray(env, src, type, *dst, dst_size); in writeMultiDimensionalArray()
197 dst_size - sz); in writeMultiDimensionalArray()
Dtensor_jni.h63 size_t writeByteBuffer(JNIEnv* env, jobject object, char** dst, int dst_size);
69 int dims_left, char** dst, int dst_size);
/external/libmicrohttpd/src/examples/
Dmhd2spdy_structures.c146 copy_buffer(const void *src, size_t src_size, void **dst, size_t *dst_size) in copy_buffer() argument
154 *dst = realloc(*dst, src_size + *dst_size); in copy_buffer()
158 memcpy(*dst + *dst_size, src, src_size); in copy_buffer()
159 *dst_size += src_size; in copy_buffer()
/external/tensorflow/tensorflow/java/src/main/native/
Dtensor_jni.cc70 size_t dst_size) { in writeScalar() argument
72 if (sz != dst_size) { in writeScalar()
76 dst_size); in writeScalar()
115 size_t dst_size) { in write1DArray() argument
124 if (to_copy > dst_size) { \ in write1DArray()
128 to_copy, dst_size); \ in write1DArray()
186 char* dst, size_t dst_size) { in writeNDArray() argument
188 return write1DArray(env, src, dtype, dst, dst_size); in writeNDArray()
196 writeNDArray(env, row, dtype, dims_left - 1, dst + sz, dst_size - sz); in writeNDArray()
/external/libchrome/base/strings/
Dstring_util.cc1027 size_t lcpyT(CHAR* dst, const CHAR* src, size_t dst_size) { in lcpyT() argument
1028 for (size_t i = 0; i < dst_size; ++i) { in lcpyT()
1034 if (dst_size != 0) in lcpyT()
1035 dst[dst_size - 1] = 0; in lcpyT()
1038 while (src[dst_size]) ++dst_size; in lcpyT()
1039 return dst_size; in lcpyT()
1044 size_t strlcpy(char* dst, const char* src, size_t dst_size) { in strlcpy() argument
1045 return lcpyT<char>(dst, src, dst_size); in strlcpy()
1047 size_t wcslcpy(wchar_t* dst, const wchar_t* src, size_t dst_size) { in wcslcpy() argument
1048 return lcpyT<wchar_t>(dst, src, dst_size); in wcslcpy()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vlc.h69 vl_vlc_init_table(struct vl_vlc_entry *dst, unsigned dst_size, const struct vl_vlc_compressed *src,… in vl_vlc_init_table() argument
71 unsigned i, bits = util_logbase2(dst_size); in vl_vlc_init_table()
73 assert(dst && dst_size); in vl_vlc_init_table()
76 for (i=0;i<dst_size;++i) { in vl_vlc_init_table()
/external/boringssl/src/include/openssl/
Dbuf.h116 OPENSSL_EXPORT size_t BUF_strlcpy(char *dst, const char *src, size_t dst_size);
119 OPENSSL_EXPORT size_t BUF_strlcat(char *dst, const char *src, size_t dst_size);
/external/libevent/
Dbufferevent_pair.c156 size_t dst_size; in be_pair_transfer() local
163 dst_size = evbuffer_get_length(dst->input); in be_pair_transfer()
164 if (dst_size < dst->wm_read.high) { in be_pair_transfer()
165 n = dst->wm_read.high - dst_size; in be_pair_transfer()
/external/libxcam/tests/
Dtest-image-stitching.cpp466 cv::Size dst_size = cv::Size (output_width, output_height); in main() local
467 if (!writer.open (file_out_name, CV_FOURCC('X', '2', '6', '4'), framerate, dst_size)) { in main()
472 dst_size = cv::Size (top_view_width, top_view_height); in main()
473 …f (!top_view_writer.open (top_view_filename, CV_FOURCC('X', '2', '6', '4'), framerate, dst_size)) { in main()
478 dst_size = cv::Size (rectified_view_width, rectified_view_height); in main()
479 …d_view_writer.open (rectified_view_filename, CV_FOURCC('X', '2', '6', '4'), framerate, dst_size)) { in main()
/external/libyuv/files/util/
Dyuvconvert.cc233 const int dst_size = dst_width * dst_height * 4; // ARGB scaled in main() local
246 uint8* const ch_dst = new uint8[dst_size]; in main()
338 fwrite(ch_dst, sizeof(uint8), static_cast<size_t>(dst_size), in main()
340 if (bytes_rec < static_cast<size_t>(dst_size)) in main()
/external/webrtc/webrtc/base/
Dautodetectproxy.cc26 size_t dst_size) { in SaveStringToStack() argument
27 strncpy(dst, src.c_str(), dst_size - 1); in SaveStringToStack()
28 dst[dst_size - 1] = '\0'; in SaveStringToStack()
/external/libunwind/src/
Delfxx.c463 uint8_t** dst, size_t* dst_size) { in elf_w()
477 *dst_size = 2 * src_size; in elf_w()
480 *dst_size *= 2; in elf_w()
481 *dst = realloc(*dst, *dst_size); in elf_w()
488 dst_remaining = *dst_size - dst_offset; in elf_w()
508 *dst_size = dst_offset; in elf_w()
509 *dst = realloc(*dst, *dst_size); in elf_w()
/external/kernel-headers/original/uapi/rdma/
Drdma_user_cm.h128 __u16 dst_size; member
167 __u16 dst_size; member
/external/libmojo/ui/gfx/geometry/
Drect_f.cc24 float dst_size, in AdjustAlongAxis() argument
27 *size = std::min(dst_size, *size); in AdjustAlongAxis()
31 *origin = std::min(dst_origin + dst_size, *origin + *size) - *size; in AdjustAlongAxis()
Drect.cc51 void AdjustAlongAxis(int dst_origin, int dst_size, int* origin, int* size) { in AdjustAlongAxis() argument
52 *size = std::min(dst_size, *size); in AdjustAlongAxis()
56 *origin = std::min(dst_origin + dst_size, *origin + *size) - *size; in AdjustAlongAxis()
/external/boringssl/src/crypto/obj/
Dobj.c428 static int strlcpy_int(char *dst, const char *src, int dst_size) { in strlcpy_int() argument
429 size_t ret = BUF_strlcpy(dst, src, dst_size < 0 ? 0 : (size_t)dst_size); in strlcpy_int()

12