From cb5fed88dec98c4539caea0713b4b94d2e4747ba Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 19 Nov 2026 05:56:03 -0800 Subject: [PATCH] Use full name [skip ci] --- src/halfutils.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/halfutils.c b/src/halfutils.c index 04c6f0db..9b09d1b7 100644 --- a/src/halfutils.c +++ b/src/halfutils.c @@ -88,8 +88,8 @@ HalfvecL2SquaredDistanceSve2(int dim, half * ax, half * bx) { int32_t width = svcnth(); int32_t count = dim; - svfloat32_t dist = svdup_f32(0); - svfloat32_t dist2 = svdup_f32(0); + svfloat32_t dist = svdup_n_f32(0.0); + svfloat32_t dist2 = svdup_n_f32(0.0); for (int32_t i = 0; i < count; i += width) { @@ -161,8 +161,8 @@ HalfvecInnerProductSve2(int dim, half * ax, half * bx) { int32_t width = svcnth(); int32_t count = dim; - svfloat32_t dist = svdup_f32(0); - svfloat32_t dist2 = svdup_f32(0); + svfloat32_t dist = svdup_n_f32(0.0); + svfloat32_t dist2 = svdup_n_f32(0.0); for (int32_t i = 0; i < count; i += width) { @@ -259,12 +259,12 @@ HalfvecCosineSimilaritySve2(int dim, half * ax, half * bx) float normb; int32_t width = svcnth(); int32_t count = dim; - svfloat32_t sim = svdup_f32(0); - svfloat32_t sim2 = svdup_f32(0); - svfloat32_t na = svdup_f32(0); - svfloat32_t na2 = svdup_f32(0); - svfloat32_t nb = svdup_f32(0); - svfloat32_t nb2 = svdup_f32(0); + svfloat32_t sim = svdup_n_f32(0.0); + svfloat32_t sim2 = svdup_n_f32(0.0); + svfloat32_t na = svdup_n_f32(0.0); + svfloat32_t na2 = svdup_n_f32(0.0); + svfloat32_t nb = svdup_n_f32(0.0); + svfloat32_t nb2 = svdup_n_f32(0.0); for (int32_t i = 0; i < count; i += width) { @@ -339,8 +339,8 @@ HalfvecL1DistanceSve2(int dim, half * ax, half * bx) { int32_t width = svcnth(); int32_t count = dim; - svfloat32_t dist = svdup_f32(0); - svfloat32_t dist2 = svdup_f32(0); + svfloat32_t dist = svdup_n_f32(0.0); + svfloat32_t dist2 = svdup_n_f32(0.0); for (int32_t i = 0; i < count; i += width) {