@@ -18,8 +18,10 @@ use core::arch::x86::{__m128i, __m256i};
1818use core:: arch:: x86_64:: __m512i;
1919#[ cfg( target_arch = "x86_64" ) ]
2020use core:: arch:: x86_64:: { __m128i, __m256i} ;
21- use core:: num:: { NonZeroU16 , NonZeroU32 , NonZeroU64 , NonZeroU8 , NonZeroUsize ,
22- NonZeroU128 } ;
21+ use core:: num:: {
22+ NonZeroU16 , NonZeroU32 , NonZeroU64 , NonZeroU8 , NonZeroUsize , NonZeroU128 ,
23+ NonZeroI16 , NonZeroI32 , NonZeroI64 , NonZeroI8 , NonZeroIsize , NonZeroI128
24+ } ;
2325#[ cfg( feature = "simd_support" ) ] use core:: simd:: * ;
2426use core:: mem;
2527
@@ -114,6 +116,14 @@ impl_nzint!(NonZeroU64, NonZeroU64::new);
114116impl_nzint ! ( NonZeroU128 , NonZeroU128 :: new) ;
115117impl_nzint ! ( NonZeroUsize , NonZeroUsize :: new) ;
116118
119+ impl_nzint ! ( NonZeroI8 , NonZeroI8 :: new) ;
120+ impl_nzint ! ( NonZeroI16 , NonZeroI16 :: new) ;
121+ impl_nzint ! ( NonZeroI32 , NonZeroI32 :: new) ;
122+ impl_nzint ! ( NonZeroI64 , NonZeroI64 :: new) ;
123+ impl_nzint ! ( NonZeroI128 , NonZeroI128 :: new) ;
124+ impl_nzint ! ( NonZeroIsize , NonZeroIsize :: new) ;
125+
126+
117127macro_rules! x86_intrinsic_impl {
118128 ( $( $intrinsic: ident) ,+) => { $(
119129 /// Available only on x86/64 platforms
0 commit comments