From 0be0dd5c6f51fa7bdd0497b4408a0385f3bf47dd Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 28 Aug 2024 11:47:40 -0700 Subject: [PATCH] fixed: more constants --- fixed_wide/src/fixed.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fixed_wide/src/fixed.rs b/fixed_wide/src/fixed.rs index ab18621..52284d9 100644 --- a/fixed_wide/src/fixed.rs +++ b/fixed_wide/src/fixed.rs @@ -12,6 +12,8 @@ impl Fixed{ pub const ZERO:Self=Self{bits:BInt::::ZERO,frac:PhantomData}; pub const ONE:Self=Self{bits:BInt::::ONE.shl(Frac::U32),frac:PhantomData}; pub const NEG_ONE:Self=Self{bits:BInt::::NEG_ONE.shl(Frac::U32),frac:PhantomData}; + pub const MAX:Self=Self{bits:BInt::::MAX,frac:PhantomData}; + pub const MIN:Self=Self{bits:BInt::::MIN,frac:PhantomData}; } impl From for Fixed