We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PhysAddr::align_up
1 parent e58e5e1 commit e0c5679Copy full SHA for e0c5679
src/addr.rs
@@ -483,12 +483,17 @@ impl PhysAddr {
483
/// Aligns the physical address upwards to the given alignment.
484
///
485
/// See the `align_up` function for more information.
486
+ ///
487
+ /// # Panics
488
489
+ /// This function panics if the resulting address has a bit in the range 52
490
+ /// to 64 set.
491
#[inline]
492
pub fn align_up<U>(self, align: U) -> Self
493
where
494
U: Into<u64>,
495
{
- PhysAddr(align_up(self.0, align.into()))
496
+ PhysAddr::new(align_up(self.0, align.into()))
497
}
498
499
/// Aligns the physical address downwards to the given alignment.
0 commit comments