Skip to content

Commit 0d0ed75

Browse files
llogiqTeXitoi
authored andcommitted
Back out #74
Removing the `#[inline(never)]` was great on my mobile skylake cpu with its beefy caches, but bad on Isaac's poor old Penryn. So let's back out that change again.
1 parent a7e626a commit 0d0ed75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/spectralnorm.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ fn dot(v: &[F64x2], u: &[F64x2]) -> f64 {
113113
r.sum()
114114
}
115115

116+
// Hint that this function should not be inlined. Keep the parallelised code tight, and vectorize
117+
// better.
118+
#[inline(never)]
116119
fn div_and_add(x: F64x2,
117120
a0: F64x2,
118121
a1: F64x2,

0 commit comments

Comments
 (0)