Changeset 40902 in vbox for trunk/src/VBox/Runtime/generic/RTMpGetArraySize-generic.cpp
- Timestamp:
- Apr 13, 2012 2:05:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/RTMpGetArraySize-generic.cpp
r36254 r40902 52 52 uint32_t cCpus1 = RTCpuLastIndex(RTMpGetSet(&CpuSet)) + 1; 53 53 uint32_t cCpus2 = RTMpGetCount(); 54 uint32_t cCpus= RT_MAX(cCpus1, cCpus2);54 cCpus = RT_MAX(cCpus1, cCpus2); 55 55 ASMAtomicCmpXchgU32(&s_cMaxCpus, cCpus, 0); 56 56 return cCpus;
Note:
See TracChangeset
for help on using the changeset viewer.