/vbox/src/VBox/Runtime/common/asm/ |
H A D | asm-fake.cpp | 229 RTDECL(void) ASMBitSet(volatile void *pvBitmap, int32_t iBit) argument 232 pau8Bitmap[iBit / 8] |= (uint8_t)RT_BIT_32(iBit & 7); 235 RTDECL(void) ASMAtomicBitSet(volatile void *pvBitmap, int32_t iBit) argument 237 ASMBitSet(pvBitmap, iBit); 240 RTDECL(void) ASMBitClear(volatile void *pvBitmap, int32_t iBit) argument 243 pau8Bitmap[iBit / 8] &= ~((uint8_t)RT_BIT_32(iBit & 7)); 246 RTDECL(void) ASMAtomicBitClear(volatile void *pvBitmap, int32_t iBit) argument 248 ASMBitClear(pvBitmap, iBit); 251 ASMBitToggle(volatile void *pvBitmap, int32_t iBit) argument 257 ASMAtomicBitToggle(volatile void *pvBitmap, int32_t iBit) argument 262 ASMBitTestAndSet(volatile void *pvBitmap, int32_t iBit) argument 270 ASMAtomicBitTestAndSet(volatile void *pvBitmap, int32_t iBit) argument 275 ASMBitTestAndClear(volatile void *pvBitmap, int32_t iBit) argument 283 ASMAtomicBitTestAndClear(volatile void *pvBitmap, int32_t iBit) argument 288 ASMBitTestAndToggle(volatile void *pvBitmap, int32_t iBit) argument 295 ASMAtomicBitTestAndToggle(volatile void *pvBitmap, int32_t iBit) argument 300 ASMBitTest(const volatile void *pvBitmap, int32_t iBit) argument 308 uint32_t iBit = 0; local 335 int iBit = ++iBitPrev & 7; local 373 uint32_t iBit = 0; local 399 int iBit = ++iBitPrev & 7; local 437 uint32_t iBit; local 446 int32_t iBit = 32; local [all...] |
/vbox/include/iprt/ |
H A D | asm.h | 3715 * @param iBit The bit to set. 3722 DECLASM(void) ASMBitSet(volatile void *pvBitmap, int32_t iBit); 3724 DECLINLINE(void) ASMBitSet(volatile void *pvBitmap, int32_t iBit) argument 3727 _bittestandset((long *)pvBitmap, iBit); 3732 : "Ir" (iBit), 3740 mov edx, [iBit] 3744 mov edx, [iBit] 3758 * @param iBit The bit to set. 3761 DECLASM(void) ASMAtomicBitSet(volatile void *pvBitmap, int32_t iBit); 3763 DECLINLINE(void) ASMAtomicBitSet(volatile void *pvBitmap, int32_t iBit) argument 3805 ASMBitClear(volatile void *pvBitmap, int32_t iBit) argument 3845 ASMAtomicBitClear(volatile void *pvBitmap, int32_t iBit) argument 3885 ASMBitToggle(volatile void *pvBitmap, int32_t iBit) argument 3923 ASMAtomicBitToggle(volatile void *pvBitmap, int32_t iBit) argument 3966 ASMBitTestAndSet(volatile void *pvBitmap, int32_t iBit) argument 4015 ASMAtomicBitTestAndSet(volatile void *pvBitmap, int32_t iBit) argument 4067 ASMBitTestAndClear(volatile void *pvBitmap, int32_t iBit) argument 4118 ASMAtomicBitTestAndClear(volatile void *pvBitmap, int32_t iBit) argument 4171 ASMBitTestAndToggle(volatile void *pvBitmap, int32_t iBit) argument 4220 ASMAtomicBitTestAndToggle(volatile void *pvBitmap, int32_t iBit) argument 4270 ASMBitTest(const volatile void *pvBitmap, int32_t iBit) argument 4402 int32_t iBit; local 4487 int iBit = ++iBitPrev & 31; local 4557 int32_t iBit; local 4641 int iBit = ++iBitPrev & 31; local 4711 unsigned long iBit; local 4776 unsigned long iBit; local [all...] |
H A D | uint128.h | 779 * @param iBit The bit to set (0 based). 781 DECLINLINE(PRTUINT128U) RTUInt128AssignOrBit(PRTUINT128U pValue1Result, uint32_t iBit) argument 784 if (iBit >= 64) 785 pValue1Result->s.Hi |= RT_BIT_64(iBit - 64); 787 pValue1Result->s.Lo |= RT_BIT_64(iBit); 789 if (iBit >= 64) 791 if (iBit >= 96) 792 pValue1Result->DWords.dw3 |= RT_BIT_32(iBit - 96); 794 pValue1Result->DWords.dw2 |= RT_BIT_32(iBit - 64); 798 if (iBit > 1080 RTUInt128BitSet(PRTUINT128U pValueResult, unsigned iBit) argument 1115 RTUInt128BitClear(PRTUINT128U pValueResult, unsigned iBit) argument 1150 RTUInt128BitTest(PRTUINT128U pValueResult, unsigned iBit) argument [all...] |
H A D | cpuset.h | 313 unsigned iBit; local 314 for (iBit = 63; iBit > 0; iBit--) 320 return i * 64 + iBit;
|
H A D | bignum.h | 60 # define RTBIGNUM_ELEMENT_BIT(iBit) RT_BIT_64(iBit) 62 # define RTBIGNUM_ELEMENT_BIT(iBit) RT_BIT_32(iBit)
|
/vbox/src/VBox/VMM/VMMAll/ |
H A D | IEMAllAImplC.cpp | 684 uint8_t iBit; 688 iBit = 0; 693 iBit = 32; 698 iBit += 16; 703 iBit += 8; 708 iBit += 4; 713 iBit += 2; 718 iBit += 1; 722 *puDst = iBit; 735 uint8_t iBit; [all...] |
/vbox/src/VBox/HostDrivers/Support/testcase/ |
H A D | tstNtQueryStuff.cpp | 76 for (unsigned iBit = 0; iBit < 32; iBit++) 77 if (fFlags & RT_BIT_32(iBit)) 80 RTStrPrintf(szTmp, sizeof(szTmp), "BIT(%d)", iBit);
|
/vbox/src/VBox/ExtPacks/VBoxDTrace/include/ |
H A D | VBoxDTraceTypes.h | 167 #define BT_SET(a_aulBitmap, iBit) ASMBitSet(a_aulBitmap, iBit) 168 #define BT_CLEAR(a_aulBitmap, iBit) ASMBitClear(a_aulBitmap, iBit) 169 #define BT_TEST(a_aulBitmap, iBit) ASMBitTest(a_aulBitmap, iBit)
|
/vbox/src/VBox/VMM/VMMR3/ |
H A D | MMPagePool.cpp | 201 unsigned iBit = 0; local 203 while (iBit < sizeof(pSub->auBitmap[0]) * 8) 209 + PAGE_SIZE * (iBit + ((uint8_t *)pu - (uint8_t *)&pSub->auBitmap[0]) * 8); 211 iBit++; 365 unsigned iBit = iPage % (sizeof(pSubPool->auBitmap[0]) * 8); local 367 pSubPool->auBitmap[iIndex] &= ~(1 << iBit);
|
H A D | VMMTests.cpp | 888 for (int iBit = 63; iBit >= 58; iBit--) 890 uValue = uOrgValue & ~RT_BIT_64(iBit); 894 uMsr, pauValues[0], uValue, pauValues[1], rc, iBit, 895 (pauValues[0] ^ pauValues[1]) & RT_BIT_64(iBit) ? "changed" : "unchanged"); 898 uValue = uOrgValue | RT_BIT_64(iBit); 902 uMsr, pauValues[0], uValue, pauValues[1], rc, iBit, 903 (pauValues[0] ^ pauValues[1]) & RT_BIT_64(iBit) ? "changed" : "unchanged");
|
H A D | CPUMR3CpuId.cpp | 5161 for (uint32_t iBit = 0; iBit < 32; iBit++) 5162 if (RT_BIT_32(iBit) & uVal) 5165 && iBit >= (uint32_t)pDesc->iFirstBit + pDesc->cBits) 5168 && iBit - (uint32_t)pDesc->iFirstBit < (uint32_t)pDesc->cBits) 5178 iBit = pDesc->iFirstBit + pDesc->cBits - 1; 5182 pHlp->pfnPrintf(pHlp, " %u", iBit); 5195 for (uint32_t iBit = 0; iBit < 6 [all...] |
/vbox/src/VBox/Runtime/testcase/ |
H A D | tstRTBitOperations.cpp | 102 for (uint32_t iBit = 0; iBit <= TEST2_ID_LAST; iBit++) 103 RTTEST_CHECK(hTest, !ASMBitTest(&p2->bmChunkId[0], iBit)); 107 for (uint32_t iBit = 0; iBit <= TEST2_ID_LAST; iBit++) 108 RTTEST_CHECK(hTest, ASMBitTest(&p2->bmChunkId[0], iBit));
|
H A D | tstRTInlineAsm.cpp | 162 unsigned iBit; local 346 for (iBit = 1; iBit < 13; iBit++) 347 if (s.uECX & RT_BIT(iBit)) 348 RTTestIPrintf(RTTESTLVL_ALWAYS, " %d", iBit); 350 for (iBit = 14; iBit < 32; iBit++) 351 if (s.uECX & RT_BIT(iBit)) [all...] |
/vbox/src/VBox/Devices/Bus/ |
H A D | MsiCommon.cpp | 160 int32_t iBit = 1 << iBitNum; local 163 if (msiBitJustCleared(pDev->config[uAddr], u8Val, iBit)) 168 pDev->config[uAddr] &= ~iBit; 175 if (msiBitJustSet(pDev->config[uAddr], u8Val, iBit))
|
/vbox/src/VBox/Runtime/common/math/ |
H A D | bignum.cpp | 1625 * @param iBit The bit to clear (0-based). 1627 DECLINLINE(void) rtBigNumMagnitudeClearBit(PRTBIGNUM pBigNum, uint32_t iBit) 1629 uint32_t iElement = iBit / RTBIGNUM_ELEMENT_BITS; 1632 iBit &= RTBIGNUM_ELEMENT_BITS - 1; 1633 pBigNum->pauElements[iElement] &= ~RTBIGNUM_ELEMENT_BIT(iBit); 1647 * @param iBit The bit to clear (0-based). 1649 DECLINLINE(int) rtBigNumMagnitudeSetBit(PRTBIGNUM pBigNum, uint32_t iBit) 1651 uint32_t iElement = iBit / RTBIGNUM_ELEMENT_BITS; 1655 iBit &= RTBIGNUM_ELEMENT_BITS - 1; 1656 pBigNum->pauElements[iElement] |= RTBIGNUM_ELEMENT_BIT(iBit); [all...] |
/vbox/src/VBox/Storage/ |
H A D | VCICache.cpp | 595 int iBit = 0; local 604 iBit = ASMBitNextSet(abBitmapBuffer, cBits, iBitPrev); 609 iBit = ASMBitNextClear(abBitmapBuffer, cBits, iBitPrev); 612 if (iBit == -1) 620 Assert((uint32_t)iBit < cBits); 621 pRangeCur->cBlocks += iBit; 638 cBits -= iBit; 639 iBitPrev = iBit; 720 unsigned iBit = 0; local 732 uint64_t cBlocksMax = RT_MIN(cBlocks, sizeof(abBitmapBuffer) * 8 - iBit); [all...] |
/vbox/src/VBox/Additions/common/VBoxGuest/ |
H A D | VBoxGuest.cpp | 2465 uint32_t iBit; local 2468 for (iBit = 0; iBit < 32; iBit++) 2469 pTracker->acPerBitUsage[iBit] = 0; 2486 uint32_t iBit; local 2489 for (iBit = 0; iBit < 32; iBit++) 2490 if (pTracker->acPerBitUsage[iBit]) 2521 uint32_t const iBit = ASMBitFirstSetU32(fChanged) - 1; local [all...] |
/vbox/src/VBox/Runtime/common/alloc/ |
H A D | memcache.cpp | 323 for (uint32_t iBit = cObjects; iBit < pThis->cBits; iBit++) 324 ASMBitSet(pPage->pbmAlloc, iBit);
|
/vbox/src/VBox/Runtime/win/amd64/ |
H A D | ASMAtomicBitClear.asm | 37 ; @param edx iBit The bit to toggle set.
|
H A D | ASMAtomicBitTestAndToggle.asm | 40 ; @param edx iBit The bit to test and toggle.
|
H A D | ASMAtomicBitToggle.asm | 38 ; @param edx iBit The bit to test and set.
|
/vbox/src/VBox/Runtime/common/filesystem/ |
H A D | filesystemext.cpp | 241 uint32_t iBit = offBlockStart % 8; local 243 if (pBlkGrpDesc->abBlockBitmap[idxByte] & RT_BIT(iBit))
|
/vbox/src/VBox/VMM/tools/ |
H A D | VBoxCpuReport.cpp | 268 for (unsigned iBit = 0; iBit < 64; iBit++) 270 uint64_t fBitMask = RT_BIT_64(iBit); 310 * @param iBit The bit to try modify. 312 static int msrProberModifyBit(uint32_t uMsr, unsigned iBit) argument 314 uint64_t fBitMask = RT_BIT_64(iBit); 431 unsigned iBit; local 432 for (iBit = 31; iBit > 3306 msrVerifyMtrrTypeGPs(uint32_t uMsr, uint32_t iBit, uint32_t cExpected) argument [all...] |
/vbox/src/VBox/ExtPacks/VBoxDTrace/ |
H A D | VBoxDTraceR0.cpp | 1015 int iBit = ASMBitFirstClear(pChunk->bm, VBOXDTVMEMCHUNK_BITS); local 1016 AssertMsgReturnStmt(iBit >= 0 && (unsigned)iBit < VBOXDTVMEMCHUNK_BITS, ("%d\n", iBit), 1020 ASMBitSet(pChunk->bm, iBit); 1024 uint32_t iRet = (uint32_t)iBit + pChunk->iFirst + pThis->uBase; 1056 uint32_t iBit = cFreeBits; local 1057 while (iBit < VBOXDTVMEMCHUNK_BITS) 1059 ASMBitSet(pChunk->bm, iBit); 1060 iBit 1113 uint32_t iBit = uMem - pChunk->iFirst; local [all...] |
/vbox/src/VBox/ValidationKit/testboxscript/ |
H A D | testboxtasks.py | 711 iBit = 0; 727 sInfo += chr(((bCur & (0x7f >> iBit)) << iBit) | bLow); 728 bLow = bCur >> (7 - iBit); 730 if iBit < 6: 731 iBit += 1; 736 iBit = 0;
|