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_); }
383383inline bool Os::ThreadAffinityMask::isSet (uint cpu) const { return CPU_ISSET (cpu, &mask_); }
384384
385385inline bool Os::ThreadAffinityMask::isEmpty () const {
386- for (__cpu_mask bits : mask_.__bits ) {
386+ for (auto bits : mask_.__bits ) {
387387 if (bits != 0 ) {
388388 return false ;
389389 }
@@ -407,17 +407,17 @@ inline void Os::ThreadAffinityMask::adjust(cpu_set_t& mask) const {
407407
408408inline uint Os::ThreadAffinityMask::countSet () const {
409409 uint count = 0 ;
410- for (__cpu_mask bits : mask_.__bits ) {
410+ for (auto bits : mask_.__bits ) {
411411 count += countBitsSet (bits);
412412 }
413413 return count;
414414}
415415
416416inline uint Os::ThreadAffinityMask::getFirstSet () const {
417417 uint i = 0 ;
418- for (__cpu_mask bits : mask_.__bits ) {
418+ for (auto bits : mask_.__bits ) {
419419 if (bits != 0 ) {
420- return leastBitSet (bits) + (i * (8 * sizeof (__cpu_mask )));
420+ return leastBitSet (bits) + (i * (8 * sizeof (bits )));
421421 }
422422
423423 ++i;
You can’t perform that action at this time.
0 commit comments