Skip to content

Commit 446c6b6

Browse files
committed
fixed issue with "out of order" arguments to neon fma functions
1 parent dbd00fc commit 446c6b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cfavml/src/danger/impl_neon.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl Hypot<f32> for Neon {
189189
// finally, do the thing
190190
let hi_scaled = vmulq_f32(hi_scaled, hi_scaled);
191191
let lo_scaled = vmulq_f32(lo, scale);
192-
vmulq_f32(hi2p, vsqrtq_f32(vfmaq_f32(lo_scaled, lo_scaled, hi_scaled)))
192+
vmulq_f32(hi2p, vsqrtq_f32(vfmaq_f32(hi_scaled, lo_scaled, lo_scaled)))
193193
}
194194
}
195195

@@ -367,7 +367,7 @@ impl Hypot<f64> for Neon {
367367
// finally, do the thing
368368
let hi_scaled = vmulq_f64(hi_scaled, hi_scaled);
369369
let lo_scaled = vmulq_f64(lo, scale);
370-
vmulq_f64(hi2p, vsqrtq_f64(vfmaq_f64(lo_scaled, lo_scaled, hi_scaled)))
370+
vmulq_f64(hi2p, vsqrtq_f64(vfmaq_f64(hi_scaled, lo_scaled, lo_scaled)))
371371
}
372372
}
373373

0 commit comments

Comments
 (0)