Skip to content

Commit 5985779

Browse files
authored
Rollup merge of #146300 - bjoernager:f16-f128-sum-product, r=jhpratt
Implement `Sum` and `Product` for `f16` and `f128`. Tracking issue: #116909. This PR implements `core::iter::{Sum, Product}` for `f16` and `f128`. I'm curious as to why these two traits aren't already implemented. I've been unable to find any information about it at all, so if there is anything that currently blocks them, I would appreciate if someone could fill me in.
2 parents 3bd603b + 02602ef commit 5985779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/iter/traits/accum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ macro_rules! float_sum_product {
203203

204204
integer_sum_product! { i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize }
205205
saturating_integer_sum_product! { u8 u16 u32 u64 u128 usize }
206-
float_sum_product! { f32 f64 }
206+
float_sum_product! { f16 f32 f64 f128 }
207207

208208
#[stable(feature = "iter_arith_traits_result", since = "1.16.0")]
209209
impl<T, U, E> Sum<Result<U, E>> for Result<T, E>

0 commit comments

Comments
 (0)