From 40e86251c3a6caf7c515fc9654c07505cb8d86a1 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Mon, 22 Apr 2024 15:15:57 -0700 Subject: [PATCH] Added VECTOR_TARGET_CLONES to VectorL1Distance [skip ci] --- src/vector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector.c b/src/vector.c index e901cd0..63fb529 100644 --- a/src/vector.c +++ b/src/vector.c @@ -729,7 +729,8 @@ vector_spherical_distance(PG_FUNCTION_ARGS) PG_RETURN_FLOAT8(acos(distance) / M_PI); } -static float +/* Does not require FMA, but keep logic simple */ +VECTOR_TARGET_CLONES static float VectorL1Distance(int dim, float *ax, float *bx) { float distance = 0.0;