VirtualBox

Changeset 63398 in vbox


Ignore:
Timestamp:
Aug 12, 2016 8:26:47 PM (8 years ago)
Author:
vboxsync
Message:

iprt/cpuset.h: GCC is a bundle of joy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpuset.h

    r62473 r63398  
    4848DECLINLINE(PRTCPUSET) RTCpuSetEmpty(PRTCPUSET pSet)
    4949{
    50     unsigned i;
     50    size_t i;
    5151    for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
    5252        pSet->bmSet[i] = 0;
     
    6363DECLINLINE(PRTCPUSET) RTCpuSetFill(PRTCPUSET pSet)
    6464{
    65     unsigned i;
     65    size_t i;
    6666    for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
    6767        pSet->bmSet[i] = UINT64_MAX;
     
    7878DECLINLINE(void) RTCpuSetCopy(PRTCPUSET pDst, PRTCPUSET pSrc)
    7979{
    80     unsigned i;
     80    size_t i;
    8181    for (i = 0; i < RT_ELEMENTS(pDst->bmSet); i++)
    8282        pDst->bmSet[i] = pSrc->bmSet[i];
     
    9393DECLINLINE(PRTCPUSET) RTCpuSetAnd(PRTCPUSET pSet, PRTCPUSET pAndMaskSet)
    9494{
    95     unsigned i;
     95    size_t i;
    9696    for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
    9797        ASMAtomicAndU64((volatile uint64_t *)&pSet->bmSet[i], pAndMaskSet->bmSet[i]);
     
    220220DECLINLINE(bool) RTCpuSetIsEqual(PCRTCPUSET pSet1, PCRTCPUSET pSet2)
    221221{
    222     unsigned i;
     222    size_t i;
    223223    for (i = 0; i < RT_ELEMENTS(pSet1->bmSet); i++)
    224224        if (pSet1->bmSet[i] != pSet2->bmSet[i])
     
    236236DECLINLINE(bool) RTCpuSetIsEmpty(PRTCPUSET pSet)
    237237{
    238     unsigned i;
     238    size_t i;
    239239    for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
    240240        if (pSet->bmSet[i])
     
    265265DECLINLINE(PRTCPUSET) RTCpuSetFromU64(PRTCPUSET pSet, uint64_t fMask)
    266266{
    267     unsigned i;
     267    size_t i;
    268268
    269269    pSet->bmSet[0] = fMask;
     
    284284{
    285285    int         cCpus = 0;
    286     unsigned    i;
     286    size_t      i;
    287287
    288288    for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++)
     
    312312DECLINLINE(int) RTCpuLastIndex(PCRTCPUSET pSet)
    313313{
    314     unsigned i = RT_ELEMENTS(pSet->bmSet);
     314    size_t i = RT_ELEMENTS(pSet->bmSet);
    315315    while (i-- > 0)
    316316    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette