| /vbox/src/VBox/Runtime/common/misc/ |
| H A D | cidr.cpp | 42 uint8_t cBits; local 60 cBits = 32; 63 rc = RTStrToUInt8Ex(pszNetmask + 1, &pszNext, 10, &cBits); 65 || cBits > 32 69 u32Netmask = ~(uint32_t)((1<< (32 - cBits)) - 1); 71 if (cBits <= 8) 73 else if (cBits <= 16) 75 else if (cBits <= 24) 77 else if (cBits <= 32)
|
| /vbox/src/VBox/Additions/haiku/VBoxTray/ |
| H A D | VBoxDisplay.cpp | 131 uint32_t cx, cy, cBits, iDisplay; local 132 int rc2 = VbglR3GetDisplayChangeRequest(&cx, &cy, &cBits, &iDisplay, NULL, NULL, NULL, NULL, true); 133 LogFlow(("rc2=%d screen %d size changed (%d, %d, %d)\n", rc2, iDisplay, cx, cy, cBits)); 139 if (cBits == 0) 140 cBits = get_depth_for_color_space(mode.space); 144 mode.space = get_color_space_for_depth(cBits); 149 {0, cx, 0, 0, cBits * cx / 8, cy, 0, 0, cBits * cy / 8, 0}, 150 get_color_space_for_depth(cBits),
|
| /vbox/src/VBox/Runtime/common/rand/ |
| H A D | randparkmiller.cpp | 74 if (pThis->u.ParkMiller.cBits < 2) 77 pThis->u.ParkMiller.cBits = 30; 82 pThis->u.ParkMiller.cBits -= 2; 100 if (pThis->u.ParkMiller.cBits < 6) 103 pThis->u.ParkMiller.cBits = 30; 108 pThis->u.ParkMiller.cBits -= 6; 120 pThis->u.ParkMiller.cBits = 0; 138 pThis->u.ParkMiller.cBits); 172 /* cBits */ 173 uint32_t cBits; local [all...] |
| /vbox/include/iprt/ |
| H A D | uint128.h | 393 * Shifts a 128-bit unsigned integer value @a cBits to the left. 398 * @param cBits The number of bits to shift it. 400 DECLINLINE(PRTUINT128U) RTUInt128ShiftLeft(PRTUINT128U pResult, PCRTUINT128U pValue, int cBits) argument 402 cBits &= 127; 403 if (cBits < 64) 405 pResult->s.Lo = pValue->s.Lo << cBits; 406 pResult->s.Hi = (pValue->s.Hi << cBits) | (pValue->s.Lo >> (64 - cBits)); 411 pResult->s.Hi = pValue->s.Lo << (cBits - 64); 418 * Shifts a 128-bit unsigned integer value @a cBits t 425 RTUInt128ShiftRight(PRTUINT128U pResult, PCRTUINT128U pValue, int cBits) argument 736 RTUInt128AssignAndNFirstBits(PRTUINT128U pValueResult, unsigned cBits) argument 840 RTUInt128AssignShiftLeft(PRTUINT128U pValueResult, int cBits) argument 891 RTUInt128AssignShiftRight(PRTUINT128U pValueResult, int cBits) argument 1189 RTUInt128BitSetRange(PRTUINT128U pValueResult, unsigned iFirstBit, unsigned cBits) argument 1263 uint32_t cBits; local [all...] |
| H A D | bignum.h | 174 RTDECL(int) RTBigNumShiftLeft(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits); 175 RTDECL(int) RTBigNumShiftRight(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits);
|
| H A D | asm.h | 4393 * @param cBits The number of bits in the bitmap. Multiple of 32. 4396 DECLASM(int) ASMBitFirstClear(const volatile void *pvBitmap, uint32_t cBits); 4398 DECLINLINE(int) ASMBitFirstClear(const volatile void *pvBitmap, uint32_t cBits) argument 4400 if (cBits) 4405 cBits = RT_ALIGN_32(cBits, 32); 4427 "1" (cBits >> 5), 4431 cBits = RT_ALIGN_32(cBits, 32); 4443 mov ecx, [cBits] 4484 ASMBitNextClear(const volatile void *pvBitmap, uint32_t cBits, uint32_t iBitPrev) argument 4553 ASMBitFirstSet(const volatile void *pvBitmap, uint32_t cBits) argument 4638 ASMBitNextSet(const volatile void *pvBitmap, uint32_t cBits, uint32_t iBitPrev) argument [all...] |
| /vbox/src/VBox/Runtime/common/asn1/ |
| H A D | asn1-ut-bitstring-decode.cpp | 43 pThis->cBits = 0; 69 pThis->cBits = 0; 82 pThis->cBits = (pThis->Asn1Core.cb - 1) * 8; 83 pThis->cBits -= cUnusedBits; 96 pszErrorTag, pThis->uBits.pu8[pThis->cBits / 8], cUnusedBits);
|
| H A D | asn1-ut-bitstring.cpp | 100 uint32_t cBits = RT_MIN(pThis->cBits, 64); local 101 while (cBits > 0) 114 if (cBits < 8) 116 b &= RT_BIT_32(cBits) - 1; 122 cBits -= 8; 139 pThis->cBits = cbEncoded * 8; 140 AssertReturn(pThis->cBits / 8 == cbEncoded, RTErrInfoSetF(pErrInfo, VERR_TOO_MUCH_DATA, "cbEncoded=%#x", cbEncoded)); 174 if (pThis->cBits & 7) 221 Assert(pThis->cBits [all...] |
| /vbox/src/VBox/Devices/Audio/ |
| H A D | DrvAudioCommon.cpp | 279 int cBits = 8; local 292 cBits = 16; 298 cBits = 32; 309 && pProps->cBits == cBits 320 int cBits = 8, cShift = 0; local 333 cBits = 16; 340 cBits = 32; 353 pProps->cBits = cBits; [all...] |
| H A D | audiosniffer.c | 352 int cBits, 364 iSampleHz, cChannels, cBits, fUnsigned, pCtx->fEndedByFilter)); 369 pCtx->cBytesPerFrame = ((cBits + 7) / 8) * cChannels; 371 if (cBits == 16) 375 else if (cBits == 32) 348 iface_AudioInputEventBegin(PPDMIAUDIOSNIFFERPORT pInterface, void *pvContext, int iSampleHz, int cChannels, int cBits, bool fUnsigned) argument
|
| /vbox/src/VBox/Runtime/common/asm/ |
| H A D | asm-fake.cpp | 306 RTDECL(int) ASMBitFirstClear(const volatile void *pvBitmap, uint32_t cBits) argument 311 while (iBit < cBits) 321 if (iBit >= cBits) 332 RTDECL(int) ASMBitNextClear(const volatile void *pvBitmap, uint32_t cBits, uint32_t iBitPrev) argument 358 if (cBits <= iBitPrev) 365 iBit = ASMBitFirstClear(&pau8Bitmap[iBitPrev / 8], cBits - iBitPrev); 371 RTDECL(int) ASMBitFirstSet(const volatile void *pvBitmap, uint32_t cBits) argument 375 while (iBit < cBits) 385 if (iBit >= cBits) 396 RTDECL(int) ASMBitNextSet(const volatile void *pvBitmap, uint32_t cBits, uint32_ argument [all...] |
| /vbox/src/VBox/Main/include/ |
| H A D | DrvAudioVideoRec.h | 44 int handleVideoRecSvrCmdAudioInputEventBegin(void *pvContext, int iSampleHz, int cChannels, int cBits, bool fUnsigned);
|
| /vbox/src/VBox/Main/src-client/ |
| H A D | DrvAudioVideoRec.cpp | 136 uint8_t cBits = 8, cShift = 0; local 149 cBits = 16; 156 cBits = 32; 166 pProps->cBits = cBits; 495 pHostVoiceOut->Props.cBits = 128; /** @todo Make this configurable (or at least a define)? */ 498 pHostVoiceOut->Props.cBits, /* bits per sample */ 501 LogFlowFunc(("freq=%d, chan=%d, cBits = %d, fsigned = %d, cSamples=%d format=%d\n", 503 pHostVoiceOut->Props.cBits, pHostVoiceOut->Props.fSigned, 604 pHostVoiceIn->Props.cChannels, pHostVoiceIn->Props.cBits); 669 handleVideoRecSvrCmdAudioInputEventBegin(void *pvContext, int iSampleHz, int cChannels, int cBits, bool fUnsigned) argument [all...] |
| H A D | AudioSnifferInterface.cpp | 127 uint32_t cBits) 136 cBits); 121 iface_AudioInputBegin(PPDMIAUDIOSNIFFERCONNECTOR pInterface, void **ppvUserCtx, void *pvContext, uint32_t cSamples, uint32_t iSampleHz, uint32_t cChannels, uint32_t cBits) argument
|
| H A D | DrvAudioVRDE.cpp | 232 pHstStrmOut->Props.cBits, 247 LogFlowFunc(("uFreq=%RU32, cChan=%RU8, cBits=%RU8, fSigned=%RTbool, enmFormat=%ld, cSamplesToSend=%RU32\n", 249 pHstStrmOut->Props.cBits, pHstStrmOut->Props.fSigned, 347 pThisStrmIn->Props.cChannels, pThisStrmIn->Props.cBits); 445 int cBits = VRDE_AUDIO_FMT_BITS_PER_SAMPLE(audioFmt); local 448 LogFlowFunc(("cbSample=%RU32, iSampleHz=%d, cChannels=%d, cBits=%d, fUnsigned=%RTbool\n", 449 VRDE_AUDIO_FMT_BYTES_PER_SAMPLE(audioFmt), iSampleHz, cChannels, cBits, fUnsigned));
|
| /vbox/src/VBox/Additions/common/VBoxGuestLib/ |
| H A D | VBoxGuestR3LibVideo.cpp | 282 * @param cBits the bpp of the mode being queried 284 VBGLR3DECL(bool) VbglR3HostLikesVideoMode(uint32_t cx, uint32_t cy, uint32_t cBits) argument 294 req.bpp = cBits; 357 * @param cBits bits per pixel for the mode 363 unsigned cBits, unsigned x, unsigned y, 379 cBits, x, y, (unsigned) fEnabled); 390 cBits); 408 && ( cx != cx2 || cy != cy2 || cBits != cBits2 456 unsigned cx, cy, cBits; local 488 cMatches = sscanf(szModeParms, "%ux%ux%u%c%ux%u,%u%c", &cx, &cy, &cBits, 362 VbglR3SaveVideoMode(unsigned cScreen, unsigned cx, unsigned cy, unsigned cBits, unsigned x, unsigned y, bool fEnabled) argument [all...] |
| /vbox/src/VBox/VMM/testcase/Instructions/ |
| H A D | InstructionTestGen.py | 194 def randUxx(cBits): 196 return g_oMyRand.getrandbits(cBits); 198 def randSxx(cBits): 200 uVal = randUxx(cBits); 201 iRet = uVal & ((1 << (cBits - 1)) - 1); 206 def randUxxList(cBits, cElements): 208 return [randUxx(cBits) for _ in range(cElements)]; 254 def rotateLeftUxx(cBits, uVal, cShift): 256 assert cShift < cBits; 258 if cBits [all...] |
| /vbox/src/VBox/Runtime/common/alloc/ |
| H A D | memcache.cpp | 118 uint32_t cBits; member in struct:RTMEMCACHEINT 213 pThis->cBits = RT_ALIGN(pThis->cPerPage, 64); 317 pb -= pThis->cBits / 8; 320 Assert((uintptr_t)pPage->pbmCtor + pThis->cBits / 8 <= (uintptr_t)pPage->pbmAlloc); 323 for (uint32_t iBit = cObjects; iBit < pThis->cBits; iBit++) 450 iObj = ASMBitFirstClear(pPage->pbmAlloc, pThis->cBits);
|
| /vbox/src/VBox/Runtime/common/crypto/ |
| H A D | x509-sanity.cpp | 96 if (pThis->SubjectPublicKey.cBits <= 32) 98 "%s: SubjectPublicKey is too small, only %u bits", pszErrorTag, pThis->SubjectPublicKey.cBits);
|
| /vbox/src/VBox/Runtime/win/amd64/ |
| H A D | ASMBitFirstClear.asm | 40 ; @param edx cBits The number of bits in the bitmap. Multiple of 32. 44 ;if (cBits)
|
| H A D | ASMBitFirstSet.asm | 40 ; @param edx cBits The number of bits in the bitmap. Multiple of 32. 44 ;if (cBits)
|
| /vbox/src/VBox/Runtime/include/internal/ |
| H A D | rand.h | 147 uint32_t cBits; member in struct:RTRANDINT::__anon16658::RTRandParkMiller
|
| /vbox/src/VBox/Runtime/common/math/ |
| H A D | bignum.cpp | 930 uint32_t cBits = RTBigNumBitWidth(pBigNum); 931 return (cBits + 7) / 8; 1741 * Shifts the magnitude left by @a cBits. 1748 * @param cBits The shift count. 1750 static int rtBigNumMagnitudeShiftLeft(PRTBIGNUM pResult, PCRTBIGNUM pValue, uint32_t cBits) 1753 if (cBits) 1758 if (cBitsNew + cBits > cBitsNew) 1760 cBitsNew += cBits; 1770 Assert(ASMMemIsAllU32(pauDst, (cBits / RTBIGNUM_ELEMENT_BITS) * RTBIGNUM_ELEMENT_SIZE, 0) == NULL); 1771 pauDst += cBits / RTBIGNUM_ELEMENT_BIT [all...] |
| /vbox/src/VBox/HostDrivers/Support/ |
| H A D | SUPDrvTracer.cpp | 148 uint8_t cBits; member in struct:SUPDRVTRACERUMOD 383 if ( pVtgHdr->cBits != ARCH_BITS 385 || ( pVtgHdr->cBits != 32 386 && pVtgHdr->cBits != 64)) ) 408 if (pVtgHdr->cBits == 32) 970 pProv->Core.cBits = ARCH_BITS; 980 pProv->Core.cBits = pUmod->cBits; 1641 && HDR_EQUALS(cBits) 1725 size_t const cProbeLocs = pVtgHdr->cbProbeLocs / (pVtgHdr->cBits [all...] |
| /vbox/src/VBox/Storage/ |
| H A D | DMG.cpp | 64 uint32_t cBits; /**< The size of the checksum. */ member in struct:DMGUDIFCKSUM 710 static void dmgSwapEndianUdifCkSum(PDMGUDIFCKSUM pCkSum, uint32_t u32Kind, uint32_t cBits) argument 715 NOREF(cBits); 724 Assert(cBits == 32); 726 pCkSum->cBits = RT_BSWAP_U32(pCkSum->cBits); 734 NOREF(cBits); 745 dmgSwapEndianUdifCkSum(pCkSum, pCkSum->u32Kind, pCkSum->cBits); 755 dmgSwapEndianUdifCkSum(pCkSum, RT_BE2H_U32(pCkSum->u32Kind), RT_BE2H_U32(pCkSum->cBits)); 774 DMG_VALIDATE(pCkSum->cBits [all...] |