Skip to content

Commit

Permalink
sum_ilp does not inline in some client code without inline(always)
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG2 committed Nov 8, 2023
1 parent 5a70f3a commit c0678c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ pub trait IteratorILP: Iterator + Sized + TrustedLowerBound {
///
/// - If `STREAMS` is set to 0. Need at least one instruction stream to
/// make progress.
#[inline]
#[inline(always)]
fn sum_ilp<const STREAMS: usize, S: Add<Self::Item, Output = S> + Add<S> + Zero>(self) -> S {
assert_ne!(STREAMS, 0, "Need at least one stream to make progress");
self.fold_ilp::<STREAMS, _>(|| S::zero(), |acc, it| acc + it, |acc1, acc2| acc1 + acc2)
Expand Down

0 comments on commit c0678c2

Please sign in to comment.