Skip to content

Commit 49fa08c

Browse files
committed
Remove unnecessary double reinterpret cast in blend call
As pointed out by @zkingston, sign_mask_sin is already float32x4_t and blend() expects float32x4_t, so no conversion is needed. The blend function internally handles the conversion to uint32x4_t for vbslq_f32, making the double cast redundant.
1 parent f3ed7ed commit 49fa08c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl/vamp/vector/neon.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ namespace vamp
602602

603603
auto poly_mask_f = IntVector::template as<VectorT>(poly_mask);
604604
auto ys = blend(y2, y1, poly_mask_f);
605-
return blend(ys, neg(ys), vreinterpretq_f32_u32(vreinterpretq_u32_f32(sign_mask_sin)));
605+
return blend(ys, neg(ys), sign_mask_sin);
606606
}
607607

608608
// NOTE: Dummy parameter because otherwise we get constexpr errors with set1_ps...

0 commit comments

Comments
 (0)