mirror of
https://github.com/rdmsr/zag.git
synced 2026-11-01 23:58:21 +00:00
fix(ke/cpu): use bitSizeOf instead of sizeOf in cpumask
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ pub fn CpuLocal(comptime T: type, comptime init: T) type {
|
|||||||
|
|
||||||
/// Bitmask of CPUs.
|
/// Bitmask of CPUs.
|
||||||
pub const CpuMask = struct {
|
pub const CpuMask = struct {
|
||||||
const bits_per_word = @sizeOf(usize) * 8;
|
const bits_per_word = @bitSizeOf(usize);
|
||||||
const num_words = (config.CONFIG_NCPUS + bits_per_word - 1) / bits_per_word;
|
const num_words = (config.CONFIG_NCPUS + bits_per_word - 1) / bits_per_word;
|
||||||
|
|
||||||
bits: [num_words]usize,
|
bits: [num_words]usize,
|
||||||
|
|||||||
Reference in New Issue
Block a user