diff --git a/fixed_wide_vectors/src/macros/mod.rs b/fixed_wide_vectors/src/macros/mod.rs index caedc19..0d9be65 100644 --- a/fixed_wide_vectors/src/macros/mod.rs +++ b/fixed_wide_vectors/src/macros/mod.rs @@ -177,6 +177,31 @@ macro_rules! impl_vector { $( $field: self.$field.max(rhs.$field) ), + } } + pub fn cmp(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.cmp(&rhs.$field) ), + + } + } + pub fn lt(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.lt(&rhs.$field) ), + + } + } + pub fn gt(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.gt(&rhs.$field) ), + + } + } + pub fn ge(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.ge(&rhs.$field) ), + + } + } + pub fn le(self, rhs: Self) -> $struct { + $struct{ + $( $field: self.$field.le(&rhs.$field) ), + + } + } } impl> core::ops::Neg for $struct {