Bump max by-value size

This commit is contained in:
Ayaz Hafiz 2023-06-16 12:30:31 -05:00
parent ec38d8a16d
commit e53937bba6
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -68,8 +68,8 @@ impl TargetInfo {
}
pub const fn max_by_value_size(&self) -> usize {
// Pass values larger than 4 machine words by reference.
self.ptr_size() * 4
// Pass values larger than 8 machine words by reference.
self.ptr_size() * 8
}
pub const fn ptr_alignment_bytes(&self) -> usize {