File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1335,7 +1335,7 @@ f! {
13351335 ( )
13361336 }
13371337
1338- pub fn CPU_ISSET ( cpu: usize , cpuset: & mut cpu_set_t) -> bool {
1338+ pub fn CPU_ISSET ( cpu: usize , cpuset: & cpu_set_t) -> bool {
13391339 let ( idx, offset) = ( ( cpu >> 6 ) & 3 , cpu & 63 ) ;
13401340 0 != cpuset. ary[ idx] & ( 1 << offset)
13411341 }
Original file line number Diff line number Diff line change @@ -1528,7 +1528,7 @@ f! {
15281528 ( )
15291529 }
15301530
1531- pub fn CPU_ISSET ( cpu: usize , cpuset: & mut cpuset_t) -> bool {
1531+ pub fn CPU_ISSET ( cpu: usize , cpuset: & cpuset_t) -> bool {
15321532 let bitset_bits = :: mem:: size_of:: <:: c_long>( ) ;
15331533 let ( idx, offset) = ( cpu / bitset_bits, cpu % bitset_bits) ;
15341534 0 != cpuset. __bits[ idx] & ( 1 << offset)
You can’t perform that action at this time.
0 commit comments