mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
reintroduce C repr for Num
This commit is contained in:
parent
002d409db8
commit
b9481116f1
|
@ -134,6 +134,7 @@ fixed_width_signed_integer_impl!(i32);
|
||||||
|
|
||||||
/// A fixed point number represented using `I` with `N` bits of fractional precision
|
/// A fixed point number represented using `I` with `N` bits of fractional precision
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
|
#[repr(C)]
|
||||||
pub struct Num<I: FixedWidthUnsignedInteger, const N: usize>(I);
|
pub struct Num<I: FixedWidthUnsignedInteger, const N: usize>(I);
|
||||||
|
|
||||||
/// An often convenient representation for the Game Boy Advance using word sized
|
/// An often convenient representation for the Game Boy Advance using word sized
|
||||||
|
|
Loading…
Reference in a new issue