Searched refs:iDiff (Results 1 - 25 of 37) sorted by relevance

12

/vbox/src/VBox/Runtime/common/string/
H A Dmemcmp.cpp70 register int32_t iDiff = *uDst.pu32++ - *uSrc.pu32++; variable
71 if (iDiff)
72 return iDiff;
79 register int8_t iDiff = *uDst.pu8++ - *uSrc.pu8++; variable
80 if (iDiff)
81 return iDiff;
H A Dutf-16-case.cpp55 register int iDiff = wc1 - wc2; local
56 if (iDiff)
65 iDiff = RTUniCpToUpper(wc1) - RTUniCpToUpper(wc2);
66 if (iDiff)
67 iDiff = RTUniCpToLower(wc1) - RTUniCpToLower(wc2);
77 return iDiff;
80 return iDiff;
88 return iDiff;
92 iDiff = RTUniCpToUpper(uc1) - RTUniCpToUpper(uc2);
93 if (iDiff)
[all...]
H A Dutf-8-case.cpp94 int iDiff = uc1 - uc2; local
95 if (iDiff)
97 iDiff = RTUniCpToUpper(uc1) != RTUniCpToUpper(uc2);
98 if (iDiff)
100 iDiff = RTUniCpToLower(uc1) - RTUniCpToLower(uc2); /* lower case diff last! */
101 if (iDiff)
102 return iDiff;
175 int iDiff = uc1 - uc2; local
176 if (iDiff)
178 iDiff
[all...]
H A Dstrversion.cpp216 int iDiff = RTStrNICmp(pszBlock1, pszBlock2, RT_MIN(cchBlock1, cchBlock2)); local
217 if (!iDiff && cchBlock1 != cchBlock2)
218 iDiff = cchBlock1 < cchBlock2 ? -1 : 1;
219 if (iDiff)
220 return iDiff < 0 ? -1 : 1;
H A Dstrformattype.cpp184 int iDiff = memcmp(pszType, pType->szType, cch); local
185 if (!iDiff)
189 iDiff = cchType < pType->cchType ? -1 : 1;
191 return iDiff;
212 int iDiff = rtstrFormatTypeCompare(pszType, cchType, &g_aTypes[i]); local
213 if (!iDiff)
217 if (iDiff < 0)
276 int iDiff = rtstrFormatTypeCompare(pszType, cchType, &g_aTypes[i]);
277 if (!iDiff)
282 if (iDiff <
[all...]
H A Dutf-16.cpp177 register int iDiff = wcs - *pwsz2; local
178 if (iDiff || !wcs)
179 return iDiff;
H A Dstrformatrt.cpp382 int iDiff = strncmp(pszType, s_aTypes[i].sz, s_aTypes[i].cch); local
383 if (!iDiff)
390 if (iDiff < 0)
973 int iDiff = strncmp(pszType, s_aTypes[i].sz, s_aTypes[i].cch); local
974 if (!iDiff)
981 if (iDiff < 0)
/vbox/src/VBox/Runtime/common/path/
H A Dcomparepaths.cpp69 int iDiff = 0; local
88 iDiff = uc1 > uc2 ? 1 : -1; /* (overflow/underflow paranoia) */
90 iDiff = 0;
103 return iDiff;
/vbox/src/VBox/Runtime/common/asn1/
H A Dasn1-ut-time.cpp78 int iDiff = RTAsn1Time_IsPresent(pLeft) ? 0 : -1; local
79 if (!iDiff)
84 iDiff = RTTimeSpecCompare(&TsLeft, pTsRight);
87 return iDiff;
167 int iDiff; local
178 iDiff = RTTimeSpecCompare(&TsLeft, &TsRight);
181 iDiff = -1;
184 iDiff = 0 - (int)RTAsn1Time_IsPresent(pRight);
185 return iDiff;
236 int iDiff
[all...]
H A Dasn1-ut-core.cpp150 int iDiff; local
155 iDiff = memcmp(pLeft->uData.pv, pRight->uData.pv, RT_MIN(pLeft->cb, pRight->cb));
156 if (!iDiff)
159 iDiff = pLeft->cb < pRight->cb ? -1 : 1;
163 iDiff = pLeft->uTag < pRight->uTag ? -1 : 1;
165 iDiff = pLeft->fClass < pRight->fClass ? -1 : 1;
169 iDiff = iDiff < 0 ? -1 : 1;
172 iDiff = -1;
175 iDiff
[all...]
H A Dasn1-ut-integer.cpp211 int iDiff; local
242 iDiff = 0;
244 iDiff = pLeft->uValue.u < pRight->uValue.u ? -1 : 1;
247 iDiff = -1;
250 iDiff = 0 - (int)RTAsn1Integer_IsPresent(pRight);
251 return iDiff;
257 int iDiff; local
268 iDiff = 0;
270 iDiff = pThis->uValue.u < u64Const ? -1 : 1;
273 iDiff
[all...]
H A Dasn1-ut-boolean.cpp173 int iDiff; local
177 iDiff = (int)pLeft->fValue - (int)pRight->fValue;
179 iDiff = -1;
182 iDiff = 0 - (int)RTAsn1Boolean_IsPresent(pRight);
183 return iDiff;
H A Dasn1-ut-bitstring.cpp440 int iDiff; local
453 iDiff = pLeft->pEncapsulated->pOps->pfnCompare(pLeft->pEncapsulated, pRight->pEncapsulated);
475 iDiff = RTAsn1Core_CompareEx(&pLeft->Asn1Core, &pRight->Asn1Core, true /*fIgnoreTagAndClass*/);
482 iDiff = RTAsn1Core_CompareEx(&pLeft->Asn1Core, &pRight->Asn1Core, true /*fIgnoreTagAndClass*/);
485 iDiff = -1;
488 iDiff = 0 - (int)RTAsn1BitString_IsPresent(pRight);
489 return iDiff;
H A Dasn1-ut-octetstring.cpp353 int iDiff; local
366 iDiff = pLeft->pEncapsulated->pOps->pfnCompare(pLeft->pEncapsulated, pRight->pEncapsulated);
388 iDiff = RTAsn1Core_CompareEx(&pLeft->Asn1Core, &pRight->Asn1Core, true /*fIgnoreTagAndClass*/);
395 iDiff = RTAsn1Core_CompareEx(&pLeft->Asn1Core, &pRight->Asn1Core, true /*fIgnoreTagAndClass*/);
398 iDiff = -1;
401 iDiff = 0 - (int)RTAsn1OctetString_IsPresent(pRight);
402 return iDiff;
H A Dasn1-basics.cpp430 int iDiff;
439 iDiff = pOps->pfnCompare(pLeftCore, pRightCore);
442 iDiff = (uintptr_t)pOps < (uintptr_t)pRightCore->pOps ? -1 : 1;
445 iDiff = 1;
448 iDiff = 0 - (int)RTAsn1Core_IsPresent(pRightCore);
449 return iDiff;
/vbox/src/VBox/Runtime/testcase/
H A DtstNoCrt-1.cpp167 if (!(iDiff op 0)) \
169 RTPrintf("tstNoCrt-1(%d): iDiff=%d expected: %s 0\n", __LINE__, iDiff, #op); \
173 int iDiff; local
408 iDiff = RT_NOCRT(strcmp)(pszDst, pszSrc); CHECK_DIFF( == );
419 iDiff = RT_NOCRT(strcmp)(pszDst, pszSrc); CHECK_DIFF( == );
457 iDiff = RT_NOCRT(memcmp)(s_szTest1, s_szTest1, sizeof(s_szTest1)); CHECK_DIFF( == );
458 iDiff = RT_NOCRT(memcmp)(s_szTest1, s_szTest2, sizeof(s_szTest1)); CHECK_DIFF( == );
459 iDiff = RT_NOCRT(memcmp)(s_szTest2, s_szTest1, sizeof(s_szTest1)); CHECK_DIFF( == );
460 iDiff
[all...]
/vbox/src/VBox/Main/src-server/
H A DHostUSBDeviceImpl.cpp972 int iDiff = aDev1->idVendor - aDev2->idVendor; local
973 if (iDiff)
974 return iDiff;
976 iDiff = aDev1->idProduct - aDev2->idProduct;
977 if (iDiff)
978 return iDiff;
980 iDiff = aDev1->bcdDevice - aDev2->bcdDevice;
981 if (iDiff)
984 return iDiff;
1004 iDiff
[all...]
H A DUSBProxyService.cpp902 int iDiff; local
904 iDiff = 1;
908 iDiff = -1;
910 iDiff = pHostDevice->i_compare(pDevices);
912 if (!iDiff)
935 if (iDiff > 0)
/vbox/include/iprt/
H A Dasn1-generator-pass.h809 int iDiff = 0
812 return iDiff; \
818 if (!iDiff) \
819 iDiff = RT_CONCAT(a_Api,_Compare)(&pLeft->a_Name, &pRight->a_Name)
821 if (!iDiff && pLeft->a_enmMembNm != pRight->a_enmMembNm) \
822 iDiff = pLeft->a_enmMembNm < pRight->a_enmMembNm ? -1 : 1; \
823 else if (!iDiff) \
828 case a_enmValue: iDiff = RT_CONCAT(a_Api,_Compare)(pLeft->a_UnionNm.a_PtrName, pRight->a_UnionNm.a_PtrName); break
833 if (!iDiff) \
838 iDiff
[all...]
/vbox/src/VBox/Runtime/generic/
H A Denv-generic.cpp745 int iDiff = strcmp((const char *)pvElement1, (const char *)pvElement2); local
746 if (iDiff < 0)
747 iDiff = -1;
748 else if (iDiff > 0)
749 iDiff = 1;
750 return iDiff;
/vbox/src/VBox/VMM/VMMR3/
H A DCFGM.cpp1239 int iDiff = memcmp(pszPath, pChild->szName, cchName); local
1240 if (iDiff <= 0)
1242 if (iDiff != 0)
1279 int iDiff = memcmp(pszName, pLeaf->szName, cchName); local
1280 if (iDiff <= 0)
1282 if (iDiff != 0)
1636 int iDiff; local
1639 iDiff = memcmp(pszName1, pszName2, cchName1);
1640 if (!iDiff && cchName1 < cchName2)
1641 iDiff
1738 int iDiff = cfgmR3CompareNames(pszName, cchName, pNext->szName, pNext->cchName); local
1880 int iDiff = cfgmR3CompareNames(pszName, cchName, pNext->szName, pNext->cchName); local
[all...]
H A DSTAM.cpp633 int iDiff = memcmp(pNode->szName, pchName, cchComp); local
634 if (!iDiff && pNode->cch != cchName)
635 iDiff = pNode->cch > cchName ? 2 : -2;
636 return iDiff;
751 int iDiff = stamR3LookupCmp(pParent->papChildren[iChild], pchName, cchName);
752 if (!iDiff)
760 if (iDiff < 0)
792 int iDiff = stamR3LookupCmp(pParent->papChildren[iChild], pchName, cchName);
793 if (iDiff <= 0)
797 return !iDiff
[all...]
/vbox/src/VBox/Runtime/common/math/
H A Dbignum.cpp2239 int iDiff = rtBigNumMagnitudeCompare(pRemainder, pDivisor);
2240 if (iDiff >= 0)
2242 if (iDiff != 0)
2305 int iDiff = rtBigNumMagnitudeCompare(pDividend, pDivisor);
2306 if (iDiff < 0)
2313 if (iDiff == 0)
2485 int iDiff = rtBigNumMagnitudeCompare(pDividend, pDivisor);
2486 if (iDiff < 0)
2493 if (iDiff == 0)
2508 iDiff
[all...]
/vbox/src/VBox/HostDrivers/Support/
H A DSUPDrvGip.cpp3351 int64_t iDiff;
3354 iDiff = uTscMaster - uTscWorker;
3356 if (iDiff > pArgs->cMaxVerifyTscTicks)
3357 pArgs->cMaxVerifyTscTicks = iDiff;
3358 if (iDiff < pArgs->cMinVerifyTscTicks)
3359 pArgs->cMinVerifyTscTicks = iDiff;
3361 if (iDiff < 0)
3364 pArgs->iVerifyBadTscDiff = -iDiff;
3373 iDiff = uTscWorker - uTscMaster;
3375 if (iDiff > pArg
[all...]
/vbox/src/VBox/Frontends/VirtualBox/src/
H A DUIVMLogViewer.cpp299 int iDiff = fStartCurrent ? 0 : 1; local
303 iResult = strText.indexOf(m_pSearchEditor->text(), iAnc + iDiff,

Completed in 175 milliseconds

12