/vbox/src/VBox/Runtime/common/string/ |
H A D | memcmp_alias.c | 3 * IPRT - No-CRT memcmp() alias for gcc. 32 #undef memcmp macro 36 # pragma weak memcmp macro 40 extern int (memcmp)(const void *pv1, const void *pv2, size_t cb) function 42 return RT_NOCRT(memcmp)(pv1, pv2, cb); 47 __asm__(".weak memcmp\t\n" 48 " .set memcmp," RT_NOCRT_STR(memcmp) "\t\n"); 51 extern __typeof(RT_NOCRT(memcmp)) memcmp __attribute_ [all...] |
/vbox/src/VBox/Additions/x11/x11include/4.3/include/ |
H A D | Xfuncs.h | 47 #define bcmp(b1,b2,len) memcmp(b1, b2, len) 53 #define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len)) 78 #define memcmp(b1,b2,len) bcmp((char *)(b1),(char *)(b2),(int)(len)) macro
|
/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/String/ |
H A D | Comparison.c | 22 /** The memcmp function compares the first n characters of the object pointed 25 @return The memcmp function returns an integer greater than, equal to, or 29 int memcmp(const void *s1, const void *s2, size_t n) function
|
/vbox/include/iprt/nocrt/ |
H A D | string.h | 34 int RT_NOCRT(memcmp)(const void *pv1, const void *pv2, size_t cb); 57 # define memcmp RT_NOCRT(memcmp) macro
|
/vbox/src/VBox/Devices/PC/ipxe/src/core/ |
H A D | string.c | 274 * memcmp - Compare two areas of memory 279 int memcmp(const void * cs,const void * ct,size_t count) function 307 if (!memcmp(s1,s2,l2))
|
/vbox/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/ |
H A D | hpux.c | 239 * Implemementation of memcmp in HP-UX (verified on releases A.09.03, 249 int memcmp(const void *s1, const void *s2, size_t n) function
|
/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Include/ |
H A D | OpenSslSupport.h | 163 int memcmp (const void *, const void *, size_t); 230 #define memcmp(buf1,buf2,count) (int)(CompareMem(buf1,buf2,(UINTN)(count))) macro
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | CPUMR3CpuId.cpp | 924 if (memcmp(auCur, auPrev, sizeof(auCur))) 1311 if (memcmp(auCur, auLast, sizeof(auCur))) 1335 if (!memcmp(auCur, auLast, sizeof(auCur))) 1338 if (!memcmp(auCur, auLastWithEcx, sizeof(auCur))) 1341 else if (!memcmp(auCur, auLastWithEcx, sizeof(auCur))) 3418 #define EQ(a_str) (cchValue == sizeof(a_str) - 1U && memcmp(szValue, a_str, sizeof(a_str) - 1)) 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 D | xf86_libc.h | 303 #undef memcmp macro 304 #define memcmp(cvp1,cvp2,I) xf86memcmp(cvp1,cvp2,I) macro
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.3.0.0/ |
H A D | xf86_libc.h | 341 #undef memcmp macro 342 #define memcmp(cvp1,cvp2,I) xf86memcmp(cvp1,cvp2,I) macro
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/ |
H A D | xf86_libc.h | 341 #undef memcmp macro 342 #define memcmp(cvp1,cvp2,I) xf86memcmp(cvp1,cvp2,I) macro
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/ |
H A D | xf86_libc.h | 347 #undef memcmp macro 348 #define memcmp(cvp1,cvp2,I) xf86memcmp(cvp1,cvp2,I) macro
|
/vbox/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/ |
H A D | xf86_libc.h | 347 #undef memcmp macro 348 #define memcmp(cvp1,cvp2,I) xf86memcmp(cvp1,cvp2,I) macro
|