/external/valgrind/main/none/tests/amd64/ |
D | pcmpxstrx64.c | 69 memcpy(blockC + 0, &argL, 16); in one_test() 70 memcpy(blockC + 16, &argR, 16); in one_test() 71 memcpy(blockC + 24, &rdxIN, 8); in one_test() 72 memcpy(blockC + 32, &raxIN, 8); in one_test() 73 memcpy(blockC + 40, &rdxIN, 8); in one_test() 98 memcpy(blockC + 0, &argL, 16); in one_test() 99 memcpy(blockC + 16, &argR, 16); in one_test() 100 memcpy(blockC + 24, &rdxIN, 8); in one_test() 101 memcpy(blockC + 32, &raxIN, 8); in one_test() 102 memcpy(blockC + 40, &rdxIN, 8); in one_test() [all …]
|
D | pcmpxstrx64w.c | 70 memcpy(blockC + 0, &argL, 16); in one_test() 71 memcpy(blockC + 16, &argR, 16); in one_test() 72 memcpy(blockC + 24, &rdxIN, 8); in one_test() 73 memcpy(blockC + 32, &raxIN, 8); in one_test() 74 memcpy(blockC + 40, &rdxIN, 8); in one_test() 99 memcpy(blockC + 0, &argL, 16); in one_test() 100 memcpy(blockC + 16, &argR, 16); in one_test() 101 memcpy(blockC + 24, &rdxIN, 8); in one_test() 102 memcpy(blockC + 32, &raxIN, 8); in one_test() 103 memcpy(blockC + 40, &rdxIN, 8); in one_test() [all …]
|
/external/clang/test/Analysis/ |
D | bstring.c | 41 #define memcpy(a,b,c) __memcpy_chk(a,b,c,(size_t)-1) macro 45 #define memcpy BUILTIN(memcpy) macro 46 void *memcpy(void *restrict s1, const void *restrict s2, size_t n); 55 memcpy(dst, src, 4); // no-warning in memcpy0() 57 clang_analyzer_eval(memcpy(dst, src, 4) == dst); // expected-warning{{TRUE}} in memcpy0() 68 …memcpy(dst, src, 5); // expected-warning{{Memory copy function accesses out-of-bound array element… in memcpy1() 75 memcpy(dst, src, 4); // expected-warning{{Memory copy function overflows destination buffer}} in memcpy2() 82 memcpy(dst+1, src+2, 2); // no-warning in memcpy3() 89 …memcpy(dst+2, src+2, 3); // expected-warning{{Memory copy function accesses out-of-bound array ele… in memcpy4() 96 memcpy(dst+2, src+2, 2); // expected-warning{{Memory copy function overflows destination buffer}} in memcpy5() [all …]
|
/external/clang/test/SemaCXX/ |
D | warn-memset-bad-sizeof.cpp | 5 extern "C" void *memcpy(void *s1, const void *s2, unsigned n); 22 memcpy(&dest, &source, sizeof(dest)); in bit_cast() 50 memcpy(&s, 0, sizeof(&s)); // \ in f() 52 memcpy(0, &s, sizeof(&s)); // \ in f() 76 memcpy(&foo, &const_foo, sizeof(Foo)); in f() 77 memcpy((void*)&s, 0, sizeof(&s)); in f() 78 memcpy(0, (void*)&s, sizeof(&s)); in f() 80 memcpy(&cptr, buffer, sizeof(cptr)); in f() 81 memcpy((char*)&cptr, buffer, sizeof(cptr)); in f() 84 memcpy(&foo, &cfoo, sizeof(Foo)); in f() [all …]
|
/external/valgrind/main/coregrind/m_syswrap/ |
D | syswrap-amd64-darwin.c | 101 VG_(memcpy)(&mach->__fpu_xmm0, &vex->guest_YMM0, sizeof(mach->__fpu_xmm0)); in x86_float_state64_from_vex() 102 VG_(memcpy)(&mach->__fpu_xmm1, &vex->guest_YMM1, sizeof(mach->__fpu_xmm1)); in x86_float_state64_from_vex() 103 VG_(memcpy)(&mach->__fpu_xmm2, &vex->guest_YMM2, sizeof(mach->__fpu_xmm2)); in x86_float_state64_from_vex() 104 VG_(memcpy)(&mach->__fpu_xmm3, &vex->guest_YMM3, sizeof(mach->__fpu_xmm3)); in x86_float_state64_from_vex() 105 VG_(memcpy)(&mach->__fpu_xmm4, &vex->guest_YMM4, sizeof(mach->__fpu_xmm4)); in x86_float_state64_from_vex() 106 VG_(memcpy)(&mach->__fpu_xmm5, &vex->guest_YMM5, sizeof(mach->__fpu_xmm5)); in x86_float_state64_from_vex() 107 VG_(memcpy)(&mach->__fpu_xmm6, &vex->guest_YMM6, sizeof(mach->__fpu_xmm6)); in x86_float_state64_from_vex() 108 VG_(memcpy)(&mach->__fpu_xmm7, &vex->guest_YMM7, sizeof(mach->__fpu_xmm7)); in x86_float_state64_from_vex() 109 VG_(memcpy)(&mach->__fpu_xmm8, &vex->guest_YMM8, sizeof(mach->__fpu_xmm8)); in x86_float_state64_from_vex() 110 VG_(memcpy)(&mach->__fpu_xmm9, &vex->guest_YMM9, sizeof(mach->__fpu_xmm9)); in x86_float_state64_from_vex() [all …]
|
/external/llvm/test/Transforms/MemCpyOpt/ |
D | memcpy.ll | 17 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %tmp219, i8* %memtmp20, i32 32, i32 16, i1 false) 19 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %agg.result21, i8* %tmp219, i32 32, i32 16, i1 false) 22 ; Check that one of the memcpy's are removed. 23 ;; FIXME: PR 8643 We should be able to eliminate the last memcpy here. 27 ; CHECK: call void @llvm.memcpy 28 ; CHECK-NOT: llvm.memcpy 35 ; The intermediate alloca and one of the memcpy's should be eliminated, the 40 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %R, i8* %P, i32 32, i32 16, i1 false) 41 call void @llvm.memcpy.p0i8.p0i8.i32(i8* %Q, i8* %R, i32 32, i32 16, i1 false) 57 …call void @llvm.memcpy.p0i8.p0i8.i32(i8* %x.01, i8* bitcast (%0* @x to i8*), i32 32, i32 16, i1 fa… [all …]
|
/external/valgrind/main/none/tests/s390x/ |
D | mvcl.c | 87 void *copy = memcpy(malloc(len1), addr1, len1); in mvcl() 110 memcpy(addr1, copy, len1); in mvcl() 216 memcpy(buf, "0123456789", 10); in main() 221 memcpy(buf, "0123456789", 10); in main() 227 memcpy(buf, "0123456789", 10); in main() 229 memcpy(buf, "0123456789", 10); in main() 231 memcpy(buf, "0123456789", 10); in main() 233 memcpy(buf, "0123456789", 10); in main() 235 memcpy(buf, "0123456789", 10); in main() 237 memcpy(buf, "0123456789", 10); in main() [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | memcpy.ll | 4 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind 7 ; Variable memcpy's should lower to calls. 10 tail call void @llvm.memcpy.p0i8.p0i8.i64( i8* %a, i8* %b, i64 %n, i32 1, i1 0 ) 14 ; LINUX: memcpy 17 ; Variable memcpy's should lower to calls. 22 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %tmp14, i8* %tmp25, i64 %n, i32 8, i1 0 ) 26 ; LINUX: memcpy 29 ; Large constant memcpy's should lower to a call when optimizing for size. 33 ; hurting performance so it should just ignore optsize when expanding memcpy. 37 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %A, i8* %B, i64 64, i32 1, i1 false) [all …]
|
/external/bluetooth/bluedroid/bta/gatt/ |
D | bta_gattc_api.c | 95 memcpy(&p_buf->app_uuid, p_app_uuid, sizeof(tBT_UUID)); in BTA_GATTC_AppRegister() 152 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_Open() 184 memcpy(p_buf->remote_bda, remote_bda, BD_ADDR_LEN); in BTA_GATTC_CancelOpen() 247 memcpy(&p_buf->srvc_uuid, p_srvc_uuid, sizeof(tBT_UUID)); in BTA_GATTC_ServiceSearchRequest() 287 memcpy(&p_char_result->srvc_id, p_srvc_id, sizeof(tBTA_GATT_SRVC_ID)); in BTA_GATTC_GetFirstChar() 331 memcpy(&p_char_result->srvc_id, &p_start_char_id->srvc_id, sizeof(tBTA_GATT_SRVC_ID)); in BTA_GATTC_GetNextChar() 374 … memcpy(&p_descr_result->descr_type, &p_descr_result->char_id.char_id.uuid, sizeof(tBT_UUID)); in BTA_GATTC_GetFirstCharDescr() 375 memcpy(&p_descr_result->char_id, p_char_id, sizeof(tBTA_GATTC_CHAR_ID)); in BTA_GATTC_GetFirstCharDescr() 419 … memcpy(&p_descr_result->descr_type, &p_descr_result->char_id.char_id.uuid, sizeof(tBT_UUID)); in BTA_GATTC_GetNextCharDescr() 420 memcpy(&p_descr_result->char_id, p_start_descr_id, sizeof(tBTA_GATTC_CHAR_ID)); in BTA_GATTC_GetNextCharDescr() [all …]
|
/external/openssl/crypto/aes/ |
D | aes_ige.c | 73 #define load_block(d, s) memcpy((d).data, (s), AES_BLOCK_SIZE) 74 #define store_block(d, s) memcpy((d), (s).data, AES_BLOCK_SIZE) 116 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 117 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 143 memcpy(ivec, iv.data, AES_BLOCK_SIZE); in AES_ige_encrypt() 144 memcpy(ivec + AES_BLOCK_SIZE, iv2.data, AES_BLOCK_SIZE); in AES_ige_encrypt() 172 memcpy(ivec, ivp->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 173 memcpy(ivec + AES_BLOCK_SIZE, iv2p->data, AES_BLOCK_SIZE); in AES_ige_encrypt() 200 memcpy(ivec, iv.data, AES_BLOCK_SIZE); in AES_ige_encrypt() 201 memcpy(ivec + AES_BLOCK_SIZE, iv2.data, AES_BLOCK_SIZE); in AES_ige_encrypt() [all …]
|
D | aes_wrap.c | 72 memcpy(out + 8, in, inlen); in AES_wrap_key() 76 memcpy(A, iv, 8); in AES_wrap_key() 83 memcpy(B + 8, R, 8); in AES_wrap_key() 92 memcpy(R, B + 8, 8); in AES_wrap_key() 95 memcpy(out, A, 8); in AES_wrap_key() 112 memcpy(A, in, 8); in AES_unwrap_key() 113 memcpy(out, in + 8, inlen); in AES_unwrap_key() 126 memcpy(B + 8, R, 8); in AES_unwrap_key() 128 memcpy(R, B + 8, 8); in AES_unwrap_key()
|
/external/clang/test/SemaObjC/ |
D | arc-non-pod-memaccess.m | 10 void *memcpy(void *s1, const void *s2, __SIZE_TYPE__ n); function 24 …memcpy(sip, ptr, 17); // expected-warning{{destination for this 'memcpy' call is a pointer to owne… 26 …memcpy(wip, ptr, 17); // expected-warning{{destination for this 'memcpy' call is a pointer to owne… 28 …memcpy(aip, ptr, 17); // expected-warning{{destination for this 'memcpy' call is a pointer to owne… 30 memcpy(uip, ptr, 17); 32 …memcpy(ptr, sip, 17); // expected-warning{{source of this 'memcpy' call is a pointer to ownership-… 34 …memcpy(ptr, wip, 17); // expected-warning{{source of this 'memcpy' call is a pointer to ownership-… 36 …memcpy(ptr, aip, 17); // expected-warning{{source of this 'memcpy' call is a pointer to ownership-… 38 memcpy(ptr, uip, 17);
|
/external/elfutils/src/ |
D | arlib.c | 60 memcpy (ar_hdr.ar_name, "/ ", sizeof (ar_hdr.ar_name)); in arlib_init() 69 memcpy (ar_hdr.ar_date, tmpbuf, in arlib_init() 79 memcpy (ar_hdr.ar_uid, "0 ", sizeof (ar_hdr.ar_uid)); in arlib_init() 80 memcpy (ar_hdr.ar_gid, "0 ", sizeof (ar_hdr.ar_gid)); in arlib_init() 81 memcpy (ar_hdr.ar_mode, "0 ", sizeof (ar_hdr.ar_mode)); in arlib_init() 82 memcpy (ar_hdr.ar_fmag, ARFMAG, sizeof (ar_hdr.ar_fmag)); in arlib_init() 96 memcpy (ar_hdr.ar_name, "// ", sizeof (ar_hdr.ar_name)); in arlib_init() 97 memcpy (ar_hdr.ar_date, " ", sizeof (ar_hdr.ar_date)); in arlib_init() 98 memcpy (ar_hdr.ar_uid, " ", sizeof (ar_hdr.ar_uid)); in arlib_init() 99 memcpy (ar_hdr.ar_gid, " ", sizeof (ar_hdr.ar_gid)); in arlib_init() [all …]
|
/external/llvm/lib/Archive/ |
D | ArchiveWriter.cpp | 89 memcpy(hdr.mode,buffer,8); in fillHeader() 91 memcpy(hdr.uid,buffer,6); in fillHeader() 93 memcpy(hdr.gid,buffer,6); in fillHeader() 98 memcpy(hdr.date,buffer,12); in fillHeader() 111 memcpy(hdr.name,ARFILE_STRTAB_NAME,16); in fillHeader() 113 memcpy(hdr.name,ARFILE_SVR4_SYMTAB_NAME,16); in fillHeader() 115 memcpy(hdr.name,ARFILE_BSD4_SYMTAB_NAME,16); in fillHeader() 117 memcpy(hdr.name,ARFILE_LLVM_SYMTAB_NAME,16); in fillHeader() 128 memcpy(hdr.name,nm,len); in fillHeader() 131 memcpy(hdr.name,mbrPath.c_str(),mbrPath.length()); in fillHeader() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | memcpy-1.ll | 1 ; Test that the memcpy library call simplifier works correctly. 7 declare i8* @memcpy(i8*, i8*, i32) 9 ; Check memcpy(mem1, mem2, size) -> llvm.memcpy(mem1, mem2, size, 1). 13 %ret = call i8* @memcpy(i8* %mem1, i8* %mem2, i32 %size) 14 ; CHECK: call void @llvm.memcpy
|
D | memcpy.ll | 3 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) nounwind 4 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind 7 tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 false) 16 tail call void @llvm.memcpy.p0i8.p0i8.i32(i8* %a, i8* %a, i32 100, i32 1, i1 true) 19 ; CHECK-NEXT: call void @llvm.memcpy 23 tail call void @llvm.memcpy.p0i8.p0i8.i64(i8* %d, i8* %s, i64 17179869184, i32 4, i1 false) 26 ; CHECK-NEXT: call void @llvm.memcpy
|
D | memcpy-2.ll | 1 ; Test that the memcpy library call simplifier works correctly. 7 declare i8 @memcpy(i8*, i8*, i32) 9 ; Check that memcpy functions with the wrong prototype aren't simplified. 13 %ret = call i8 @memcpy(i8* %mem1, i8* %mem2, i32 %size) 14 ; CHECK: call i8 @memcpy
|
/external/ppp/pppd/plugins/radius/ |
D | sendserver.c | 68 memcpy(buf, vp->strvalue, (size_t) length); in rc_pack_list() 78 memcpy(buf, (char *) &lvalue, sizeof(UINT4)); in rc_pack_list() 104 memcpy ((char *) passbuf, vp->strvalue, (size_t) length); in rc_pack_list() 111 memcpy ((char *) md5buf + secretlen, vector, in rc_pack_list() 138 memcpy ((char *) passbuf, vp->strvalue, (size_t) length); in rc_pack_list() 143 memcpy ((char *) md5buf + secretlen, (char *) auth->vector, in rc_pack_list() 160 memcpy (buf, vp->strvalue, (size_t) length); in rc_pack_list() 169 memcpy (buf, (char *) &lvalue, sizeof (UINT4)); in rc_pack_list() 274 memcpy ((char *) auth + total_length, secret, secretlen); in rc_send_server() 276 memcpy ((char *) auth->vector, (char *) vector, AUTH_VECTOR_LEN); in rc_send_server() [all …]
|
/external/openssl/crypto/des/ |
D | cbc3_enc.c | 75 memcpy(niv1,output[off],sizeof(DES_cblock)); in DES_3cbc_encrypt() 81 memcpy(niv2,output[off],sizeof(DES_cblock)); in DES_3cbc_encrypt() 86 memcpy(niv2,input[off],sizeof(DES_cblock)); in DES_3cbc_encrypt() 92 memcpy(niv1,output[off],sizeof(DES_cblock)); in DES_3cbc_encrypt() 96 memcpy(*iv1,niv1,sizeof(DES_cblock)); in DES_3cbc_encrypt() 97 memcpy(*iv2,niv2,sizeof(DES_cblock)); in DES_3cbc_encrypt()
|
D | destest.c | 376 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 390 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 412 memcpy(in,plain_data[i],8); in main() 440 memcpy(in,plain_data[i],8); in main() 470 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 479 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 497 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 505 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 535 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() 556 memcpy(iv3,cbc_iv,sizeof(cbc_iv)); in main() [all …]
|
/external/webrtc/src/common_audio/signal_processing/ |
D | resample_48khz.c | 41 memcpy(tmpmem + 8, state->S_48_32, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample48khzTo16khz() 42 memcpy(state->S_48_32, tmpmem + 488, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample48khzTo16khz() 79 memcpy(tmpmem + 8, state->S_32_24, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample16khzTo48khz() 80 memcpy(state->S_32_24, tmpmem + 328, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample16khzTo48khz() 123 memcpy(tmpmem + 8, state->S_24_16, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample48khzTo8khz() 124 memcpy(state->S_24_16, tmpmem + 248, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample48khzTo8khz() 162 memcpy(tmpmem + 256, state->S_16_12, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample8khzTo48khz() 163 memcpy(state->S_16_12, tmpmem + 416, 8 * sizeof(WebRtc_Word32)); in WebRtcSpl_Resample8khzTo48khz()
|
/external/e2fsprogs/intl/ |
D | os2compat.c | 61 memcpy (_nlos2_libdir, root, sl); in nlos2_initialize() 62 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize() 75 memcpy (_nlos2_localealiaspath, root, sl); in nlos2_initialize() 76 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize() 89 memcpy (_nlos2_localedir, root, sl); in nlos2_initialize() 90 memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); in nlos2_initialize()
|
/external/bluetooth/bluedroid/btif/src/ |
D | btif_util.c | 130 memcpy(uuid128->uu, sdp_base_uuid, MAX_UUID_SIZE); in uuid16_to_uuid128() 132 memcpy(uuid128->uu + 2, &uuid16_bo, sizeof(uint16_t)); in uuid16_to_uuid128() 150 memcpy(&(p_uuid->uu[0]), &uuid0, 4); in string_to_uuid() 151 memcpy(&(p_uuid->uu[4]), &uuid1, 2); in string_to_uuid() 152 memcpy(&(p_uuid->uu[6]), &uuid2, 2); in string_to_uuid() 153 memcpy(&(p_uuid->uu[8]), &uuid3, 2); in string_to_uuid() 154 memcpy(&(p_uuid->uu[10]), &uuid4, 4); in string_to_uuid() 155 memcpy(&(p_uuid->uu[14]), &uuid5, 2); in string_to_uuid() 166 memcpy(&uuid0, &(p_uuid->uu[0]), 4); in uuid_to_string() 167 memcpy(&uuid1, &(p_uuid->uu[4]), 2); in uuid_to_string() [all …]
|
/external/grub/netboot/ |
D | i82586.c | 279 memcpy((char *)write_ptr, (char *)rx_cmd, sizeof(rx_cmd)); in setup_rx_buffers() 288 memcpy((char *)write_ptr, (char *)rx_cmd, sizeof(unsigned short) * 3); in setup_rx_buffers() 338 memcpy((char *)(mem_end - 10), (char *)init_words, 10); in i82586_reset() 339 memcpy((char *)mem_start, (char *)&init_words[5], sizeof(init_words) - 10); in i82586_reset() 340 memcpy((char *)mem_start + SA_OFFSET, nic->node_addr, ETH_ALEN); in i82586_reset() 403 memcpy(nic->packet, (char *)mem_start + rx_head + 0x20, pkt_len); in i82586_poll() 456 memcpy((char *)bptr, (char *)tx_cmd, sizeof(tx_cmd)); in i82586_transmit() 458 memcpy((char *)bptr, d, ETH_ALEN); in i82586_transmit() 460 memcpy((char *)bptr, nic->node_addr, ETH_ALEN); in i82586_transmit() 462 memcpy((char *)bptr, (char *)&type, sizeof(type)); in i82586_transmit() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | privsep.c | 371 memcpy(reply + 1, privkey->v, privkey->l); in privsep_init() 438 memcpy((char *)&name, bufs[count++], sizeof(name)); in privsep_init() 481 memcpy(&keylen, bufs[1], sizeof(keylen)); in privsep_init() 501 memcpy(reply + 1, psk->v, psk->l); in privsep_init() 522 memcpy(&port, bufs[0], sizeof(port)); in privsep_init() 526 memcpy(&inout, bufs[3], sizeof(port)); in privsep_init() 580 memcpy(&port, bufs[0], sizeof(port)); in privsep_init() 581 memcpy(&inout, bufs[1], sizeof(inout)); in privsep_init() 582 memcpy(&pool_size, bufs[2], sizeof(pool_size)); in privsep_init() 621 memcpy(&port, bufs[0], sizeof(port)); in privsep_init() [all …]
|