Searched defs:memcpy (Results 1 - 21 of 21) sorted by relevance

/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Library/IntrinsicLib/
H A DCopyMem.c20 void * memcpy (void *dest, const void *src, unsigned int count) function
/vbox/src/VBox/Runtime/common/string/
H A Dmemcpy_alias.c3 * IPRT - No-CRT memcpy() alias for gcc.
32 #undef memcpy macro
36 # pragma weak memcpy macro
40 extern void *(memcpy)(void *pvDst, const void *pvSrc, size_t cb) function
42 return RT_NOCRT(memcpy)(pvDst, pvSrc, cb);
47 __asm__(".weak memcpy\t\n"
48 " .set memcpy," RT_NOCRT_STR(memcpy) "\t\n");
51 extern __typeof(RT_NOCRT(memcpy)) memcpy __attribute_
[all...]
/vbox/src/VBox/Devices/EFI/Firmware/IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/
H A DUefiLzma.h41 #define memcpy CopyMem macro
/vbox/src/VBox/Additions/x11/x11include/4.3/include/
H A DXfuncs.h77 #define memcpy(dst,src,len) bcopy((char *)(src),(char *)(dst),(int)(len)) macro
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/String/
H A DCopying.c22 /** Do not define memcpy for IPF+GCC builds.
23 For IPF, using a GCC compiler, the memcpy function is converted to
27 /** The memcpy function copies n characters from the object pointed to by s2
32 @return The memcpy function returns the value of s1.
35 memcpy(void * __restrict s1, const void * __restrict s2, size_t n) function
48 This is a version of memcpy that is guaranteed to work when s1 and s2
49 overlap. Since our implementation of memcpy already handles overlap,
50 memmove can be identical to memcpy.
143 memcpy(copy, str, len);
/vbox/src/VBox/Additions/common/VBoxGuestLib/
H A DVBoxGuestR3LibSeamless.cpp43 # undef memcpy macro
44 # define memcpy xf86memcpy macro
161 memcpy(&pReq->Rect, pRects, cRects * sizeof(RTRECT));
H A DVBoxGuestR3LibVideo.cpp47 # undef memcpy macro
48 # define memcpy xf86memcpy macro
117 memcpy(pReq->pointerData, pvImg, cbImg);
/vbox/include/iprt/nocrt/
H A Dstring.h35 void * RT_NOCRT(memcpy)(void *pvDst, const void *pvSrc, size_t cb);
58 # define memcpy RT_NOCRT(memcpy) macro
/vbox/src/VBox/Devices/PC/ipxe/src/arch/x86/include/bits/
H A Dstring.h5 * All except memcpy, memmove, memset and memcmp removed.
153 #define memcpy( dest, src, len ) \ macro
/vbox/src/VBox/Devices/PC/ipxe/src/core/
H A Dstring.c223 * memcpy - Copy one area of memory to another
231 void * memcpy(void * dest,const void *src,size_t count) function
249 * Unlike memcpy(), memmove() copes with overlapping areas.
348 memcpy(new,s,len);
/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Include/
H A DOpenSslSupport.h160 void *memcpy (void *, const void *, size_t);
227 #define memcpy(dest,source,count) CopyMem(dest,source,(UINTN)(count)) macro
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/mac/
H A Dmdmac.c630 void *memcpy(void *to, const void *from, size_t size) function
/vbox/src/VBox/HostDrivers/VBoxUSB/os2/
H A Dusbcalls.c12 #define memcpy __builtin_memcpy macro
/vbox/src/VBox/Main/src-all/
H A DExtPackManagerImpl.cpp2258 memcpy(&pszStdErrBuf[offStdErrBuf], achBuf, cbRead);
2179 AssertReturn(cArgs < RT_ELEMENTS(apszArgs) - 1, E_UNEXPECTED); pszLastArg = va_arg(va, const char *); if (!pszLastArg) break; LogRel((�, pszLastArg)); apszArgs[cArgs++] = pszLastArg; }; va_end(va); LogRel((�)); apszArgs[cArgs] = NULL; RTPIPE hPipeR; RTHANDLE hStdErrPipe; hStdErrPipe.enmType = RTHANDLETYPE_PIPE; vrc = RTPipeCreate(&hPipeR, &hStdErrPipe.u.hPipe, RTPIPE_C_INHERIT_WRITE); AssertLogRelRCReturn(vrc, E_UNEXPECTED); HRESULT hrc; RTPROCESS hProcess; vrc = RTProcCreateEx(szExecName, apszArgs, RTENV_DEFAULT, 0 , NULL , NULL , &hStdErrPipe, NULL , NULL , &hProcess); if (RT_SUCCESS(vrc)) { vrc = RTPipeClose(hStdErrPipe.u.hPipe); hStdErrPipe.u.hPipe = NIL_RTPIPE; RTPROCSTATUS ProcStatus = { -42, RTPROCEXITREASON_ABEND }; size_t cbStdErrBuf = 0; size_t offStdErrBuf = 0; char *pszStdErrBuf = NULL; do { if (hPipeR != NIL_RTPIPE) { char achBuf[1024]; size_t cbRead; vrc = RTPipeReadBlocking(hPipeR, achBuf, sizeof(achBuf), &cbRead); if (RT_SUCCESS(vrc)) { size_t cbBufReq = offStdErrBuf + cbRead + 1; if ( cbBufReq > cbStdErrBuf && cbBufReq < _256K) { size_t cbNew = RT_ALIGN_Z(cbBufReq, 16); void *pvNew = RTMemRealloc(pszStdErrBuf, cbNew); if (pvNew) { pszStdErrBuf = (char *)pvNew; cbStdErrBuf = cbNew; } } if (cbBufReq <= cbStdErrBuf) { memcpy(&pszStdErrBuf[offStdErrBuf], achBuf, cbRead); offStdErrBuf = offStdErrBuf + cbRead; pszStdErrBuf[offStdErrBuf] = �; } } else { AssertLogRelMsg(vrc == VERR_BROKEN_PIPE, (�, vrc)); RTPipeClose(hPipeR); hPipeR = NIL_RTPIPE; } } if (hProcess != NIL_RTPROCESS) { vrc = RTProcWait(hProcess, hPipeR == NIL_RTPIPE ? RTPROCWAIT_FLAGS_BLOCK : RTPROCWAIT_FLAGS_NOBLOCK, &ProcStatus); if (RT_SUCCESS(vrc)) hProcess = NIL_RTPROCESS; else AssertLogRelMsgStmt(vrc == VERR_PROCESS_RUNNING, (�, vrc), hProcess = NIL_RTPROCESS); } } while ( hPipeR != NIL_RTPIPE || hProcess != NIL_RTPROCESS); LogRel((�, ProcStatus.enmReason, ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �)); if (offStdErrBuf > 0) { RTStrStripR(pszStdErrBuf); offStdErrBuf = strlen(pszStdErrBuf); } char *pszSuccessInd = findSuccessIndicator(pszStdErrBuf, offStdErrBuf); if (pszSuccessInd) { *pszSuccessInd = �; offStdErrBuf = pszSuccessInd - pszStdErrBuf; } else if ( ProcStatus.enmReason == RTPROCEXITREASON_NORMAL && ProcStatus.iStatus == 0) ProcStatus.iStatus = offStdErrBuf ? 667 : 666; if ( ProcStatus.enmReason == RTPROCEXITREASON_NORMAL && ProcStatus.iStatus == 0) hrc = S_OK; else if (ProcStatus.enmReason == RTPROCEXITREASON_NORMAL) { AssertMsg(ProcStatus.iStatus != 0, (�, pszStdErrBuf)); hrc = setError(E_FAIL, tr(�), ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �); } else if (ProcStatus.enmReason == RTPROCEXITREASON_SIGNAL) hrc = setError(E_UNEXPECTED, tr(�), ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �); else if (ProcStatus.enmReason == RTPROCEXITREASON_ABEND) hrc = setError(E_UNEXPECTED, tr(�), offStdErrBuf ? pszStdErrBuf : �); else hrc = setError(E_UNEXPECTED, tr(�), ProcStatus.enmReason, ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �); RTMemFree(pszStdErrBuf); } else hrc = setError(VBOX_E_IPRT_ERROR, tr(�), szExecName, vrc); RTPipeClose(hPipeR); RTPipeClose(hStdErrPipe.u.hPipe); return hrc; } ExtPack *ExtPackManager::i_findExtPack(const char *a_pszName) { size_t cchName = strlen(a_pszName); for (ExtPackList::iterator it = m->llInstalledExtPacks.begin(); it != m->llInstalledExtPacks.end(); it++) argument
/vbox/src/VBox/VMM/VMMR3/
H A DCPUMR3CpuId.cpp1006 memcpy(auPrev, auCur, sizeof(auCur));
1033 memcpy(pLeaf, pcLeaf, sizeof(*pLeaf));
4198 memcpy(&aHostOverrideStd[0], &aHostRawStd[0], sizeof(aHostOverrideStd));
4202 memcpy(&aHostOverrideExt[0], &aHostRawExt[0], sizeof(aHostOverrideExt));
840 AssertLogRelReturn(cLeaves < CPUM_CPUID_MAX_LEAVES, VERR_TOO_MANY_CPUID_LEAVES); paLeaves = cpumR3CpuIdEnsureSpace(pVM, ppaLeaves, cLeaves); if (!paLeaves) return VERR_NO_MEMORY; if (i < cLeaves) memmove(&paLeaves[i + 1], &paLeaves[i], (cLeaves - i) * sizeof(paLeaves[0])); *pcLeaves += 1; paLeaves[i] = *pNewLeaf; cpumR3CpuIdAssertOrder(*ppaLeaves, *pcLeaves); return VINF_SUCCESS; } static void cpumR3CpuIdRemoveRange(PCPUMCPUIDLEAF paLeaves, uint32_t *pcLeaves, uint32_t uFirst, uint32_t uLast) { uint32_t cLeaves = *pcLeaves; Assert(uFirst <= uLast); uint32_t iFirst = 0; while ( iFirst < cLeaves && paLeaves[iFirst].uLeaf < uFirst) iFirst++; uint32_t iEnd = iFirst; while ( iEnd < cLeaves && paLeaves[iEnd].uLeaf <= uLast) iEnd++; if (iFirst < iEnd) { if (iEnd < cLeaves) memmove(&paLeaves[iFirst], &paLeaves[iEnd], (cLeaves - iEnd) * sizeof(paLeaves[0])); *pcLeaves = cLeaves -= (iEnd - iFirst); } cpumR3CpuIdAssertOrder(paLeaves, *pcLeaves); } static bool cpumR3IsEcxRelevantForCpuIdLeaf(uint32_t uLeaf, uint32_t *pcSubLeaves, bool *pfFinalEcxUnchanged) { *pfFinalEcxUnchanged = false; uint32_t auCur[4]; uint32_t auPrev[4]; ASMCpuIdExSlow(uLeaf, 0, 0, 0, &auPrev[0], &auPrev[1], &auPrev[2], &auPrev[3]); uint32_t uSubLeaf = 1; for (;;) { ASMCpuIdExSlow(uLeaf, 0, uSubLeaf, 0, &auCur[0], &auCur[1], &auCur[2], &auCur[3]); if (memcmp(auCur, auPrev, sizeof(auCur))) break; uSubLeaf++; if (uSubLeaf >= 64) { *pcSubLeaves = 1; return false; } } uint32_t cRepeats = 0; uSubLeaf = 0; for (;;) { ASMCpuIdExSlow(uLeaf, 0, uSubLeaf, 0, &auCur[0], &auCur[1], &auCur[2], &auCur[3]); if ( auCur[0] == 0 && auCur[1] == 0 && (auCur[2] == 0 || auCur[2] == uSubLeaf) && (auCur[3] == 0 || uLeaf == 0xb ) ) { cRepeats = 0; break; } if ( auCur[0] == auPrev[0] && auCur[1] == auPrev[1] && ( auCur[2] == auPrev[2] || ( auCur[2] == uSubLeaf && auPrev[2] == uSubLeaf - 1) ) && auCur[3] == auPrev[3]) { cRepeats++; if (cRepeats > 4) break; } else cRepeats = 0; if ( uLeaf == 0xb && (auCur[2] & 0xff00) == 0 && (auPrev[2] & 0xff00) == 0) { cRepeats = 0; break; } if (uSubLeaf >= 128) { uint32_t cDocLimit = UINT32_MAX; if (uLeaf == 0x4) cDocLimit = 4; else if (uLeaf == 0x7) cDocLimit = 1; else if (uLeaf == 0xf) cDocLimit = 2; if (cDocLimit != UINT32_MAX) { *pfFinalEcxUnchanged = auCur[2] == uSubLeaf && uLeaf == 0xb; *pcSubLeaves = cDocLimit + 3; return true; } *pcSubLeaves = UINT32_MAX; return true; } uSubLeaf++; memcpy(auPrev, auCur, sizeof(auCur)); } *pfFinalEcxUnchanged = auCur[2] == uSubLeaf && uLeaf == 0xb; *pcSubLeaves = uSubLeaf + 1 - cRepeats; if (*pcSubLeaves == 0) *pcSubLeaves = 1; return true; } VMMR3DECL(int) CPUMR3CpuIdGetLeaf(PVM pVM, PCPUMCPUIDLEAF pLeaf, uint32_t uLeaf, uint32_t uSubLeaf) { PCPUMCPUIDLEAF pcLeaf = cpumR3CpuIdGetLeaf(pVM->cpum.s.GuestInfo.paCpuIdLeavesR3, pVM->cpum.s.GuestInfo.cCpuIdLeaves, uLeaf, uSubLeaf); if (pcLeaf) { memcpy(pLeaf, pcLeaf, sizeof(*pLeaf)); return VINF_SUCCESS; } return VERR_NOT_FOUND; } VMMR3DECL(int) CPUMR3CpuIdInsert(PVM pVM, PCPUMCPUIDLEAF pNewLeaf) { AssertReturn(pVM, VERR_INVALID_PARAMETER); AssertReturn(pNewLeaf, VERR_INVALID_PARAMETER); if ( pNewLeaf->uLeaf == UINT32_C(0x00000000) || pNewLeaf->uLeaf == UINT32_C(0x00000001) || pNewLeaf->uLeaf == UINT32_C(0x80000000) || pNewLeaf->uLeaf == UINT32_C(0x80000001) || pNewLeaf->uLeaf == UINT32_C(0xc0000000) || pNewLeaf->uLeaf == UINT32_C(0xc0000001) ) argument
/vbox/src/VBox/Additions/x11/x11include/4.3/programs/Xserver/hw/xfree86/os-support/
H A Dxf86_libc.h305 #undef memcpy macro
306 #define memcpy(vp,cvp,I) xf86memcpy(vp,cvp,I) macro
/vbox/src/recompiler/
H A DVBoxRecompiler.c79 * This is probably faster than *calling* memcpy.
5485 void *memcpy(void *dst, const void *src, size_t size) function
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/
H A Dxf86_libc.h343 #undef memcpy macro
344 #define memcpy(vp,cvp,I) xf86memcpy(vp,cvp,I) macro
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/
H A Dxf86_libc.h343 #undef memcpy macro
344 #define memcpy(vp,cvp,I) xf86memcpy(vp,cvp,I) macro
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/
H A Dxf86_libc.h349 #undef memcpy macro
350 #define memcpy(vp,cvp,I) xf86memcpy(vp,cvp,I) macro
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/
H A Dxf86_libc.h349 #undef memcpy macro
350 #define memcpy(vp,cvp,I) xf86memcpy(vp,cvp,I) macro

Completed in 517 milliseconds