Changeset 63398 in vbox
- Timestamp:
- Aug 12, 2016 8:26:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cpuset.h
r62473 r63398 48 48 DECLINLINE(PRTCPUSET) RTCpuSetEmpty(PRTCPUSET pSet) 49 49 { 50 unsignedi;50 size_t i; 51 51 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++) 52 52 pSet->bmSet[i] = 0; … … 63 63 DECLINLINE(PRTCPUSET) RTCpuSetFill(PRTCPUSET pSet) 64 64 { 65 unsignedi;65 size_t i; 66 66 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++) 67 67 pSet->bmSet[i] = UINT64_MAX; … … 78 78 DECLINLINE(void) RTCpuSetCopy(PRTCPUSET pDst, PRTCPUSET pSrc) 79 79 { 80 unsignedi;80 size_t i; 81 81 for (i = 0; i < RT_ELEMENTS(pDst->bmSet); i++) 82 82 pDst->bmSet[i] = pSrc->bmSet[i]; … … 93 93 DECLINLINE(PRTCPUSET) RTCpuSetAnd(PRTCPUSET pSet, PRTCPUSET pAndMaskSet) 94 94 { 95 unsignedi;95 size_t i; 96 96 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++) 97 97 ASMAtomicAndU64((volatile uint64_t *)&pSet->bmSet[i], pAndMaskSet->bmSet[i]); … … 220 220 DECLINLINE(bool) RTCpuSetIsEqual(PCRTCPUSET pSet1, PCRTCPUSET pSet2) 221 221 { 222 unsignedi;222 size_t i; 223 223 for (i = 0; i < RT_ELEMENTS(pSet1->bmSet); i++) 224 224 if (pSet1->bmSet[i] != pSet2->bmSet[i]) … … 236 236 DECLINLINE(bool) RTCpuSetIsEmpty(PRTCPUSET pSet) 237 237 { 238 unsignedi;238 size_t i; 239 239 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++) 240 240 if (pSet->bmSet[i]) … … 265 265 DECLINLINE(PRTCPUSET) RTCpuSetFromU64(PRTCPUSET pSet, uint64_t fMask) 266 266 { 267 unsignedi;267 size_t i; 268 268 269 269 pSet->bmSet[0] = fMask; … … 284 284 { 285 285 int cCpus = 0; 286 unsignedi;286 size_t i; 287 287 288 288 for (i = 0; i < RT_ELEMENTS(pSet->bmSet); i++) … … 312 312 DECLINLINE(int) RTCpuLastIndex(PCRTCPUSET pSet) 313 313 { 314 unsignedi = RT_ELEMENTS(pSet->bmSet);314 size_t i = RT_ELEMENTS(pSet->bmSet); 315 315 while (i-- > 0) 316 316 {
Note:
See TracChangeset
for help on using the changeset viewer.