From 862f17c1de9f47ed1b8b6389f23fd09287b496c9 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 8 Apr 2024 14:15:34 -0700 Subject: [PATCH] Removed unneeded initialization [skip ci] --- src/halfutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/halfutils.c b/src/halfutils.c index c15d94f..c53da83 100644 --- a/src/halfutils.c +++ b/src/halfutils.c @@ -42,7 +42,7 @@ HalfvecL2DistanceSquaredDefault(int dim, half * ax, half * bx) TARGET_F16C_FMA static float HalfvecL2DistanceSquaredF16cFma(int dim, half * ax, half * bx) { - float distance = 0.0; + float distance; int i; float s[8]; int count = (dim / 8) * 8; @@ -90,7 +90,7 @@ HalfvecInnerProductDefault(int dim, half * ax, half * bx) TARGET_F16C_FMA static float HalfvecInnerProductF16cFma(int dim, half * ax, half * bx) { - float distance = 0.0; + float distance; int i; float s[8]; int count = (dim / 8) * 8;