File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ inline void Os::ThreadAffinityMask::clear(uint cpu) { CPU_CLR(cpu, &mask_); }
383
383
inline bool Os::ThreadAffinityMask::isSet (uint cpu) const { return CPU_ISSET (cpu, &mask_); }
384
384
385
385
inline bool Os::ThreadAffinityMask::isEmpty () const {
386
- for (__cpu_mask bits : mask_.__bits ) {
386
+ for (auto bits : mask_.__bits ) {
387
387
if (bits != 0 ) {
388
388
return false ;
389
389
}
@@ -407,17 +407,17 @@ inline void Os::ThreadAffinityMask::adjust(cpu_set_t& mask) const {
407
407
408
408
inline uint Os::ThreadAffinityMask::countSet () const {
409
409
uint count = 0 ;
410
- for (__cpu_mask bits : mask_.__bits ) {
410
+ for (auto bits : mask_.__bits ) {
411
411
count += countBitsSet (bits);
412
412
}
413
413
return count;
414
414
}
415
415
416
416
inline uint Os::ThreadAffinityMask::getFirstSet () const {
417
417
uint i = 0 ;
418
- for (__cpu_mask bits : mask_.__bits ) {
418
+ for (auto bits : mask_.__bits ) {
419
419
if (bits != 0 ) {
420
- return leastBitSet (bits) + (i * (8 * sizeof (__cpu_mask )));
420
+ return leastBitSet (bits) + (i * (8 * sizeof (bits )));
421
421
}
422
422
423
423
++i;
You can’t perform that action at this time.
0 commit comments