mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Update
This commit is contained in:
@@ -921,7 +921,7 @@ impl Dtype {
|
||||
match self {
|
||||
Self::Unit { .. } => Ok((0, 1)),
|
||||
Self::Int { width, .. } | Self::Float { width, .. } => {
|
||||
let size_of = (*width + Self::BITS_OF_BYTE - 1) / Self::BITS_OF_BYTE;
|
||||
let size_of = (*width).div_ceil(Self::BITS_OF_BYTE);
|
||||
let align_of = size_of;
|
||||
|
||||
Ok((size_of, align_of))
|
||||
|
||||
Reference in New Issue
Block a user