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! {
1335
1335
( )
1336
1336
}
1337
1337
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 {
1339
1339
let ( idx, offset) = ( ( cpu >> 6 ) & 3 , cpu & 63 ) ;
1340
1340
0 != cpuset. ary[ idx] & ( 1 << offset)
1341
1341
}
Original file line number Diff line number Diff line change @@ -1528,7 +1528,7 @@ f! {
1528
1528
( )
1529
1529
}
1530
1530
1531
- pub fn CPU_ISSET ( cpu: usize , cpuset: & mut cpuset_t) -> bool {
1531
+ pub fn CPU_ISSET ( cpu: usize , cpuset: & cpuset_t) -> bool {
1532
1532
let bitset_bits = :: mem:: size_of:: <:: c_long>( ) ;
1533
1533
let ( idx, offset) = ( cpu / bitset_bits, cpu % bitset_bits) ;
1534
1534
0 != cpuset. __bits[ idx] & ( 1 << offset)
You can’t perform that action at this time.
0 commit comments