mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Added VECTOR_TARGET_CLONES to VectorL1Distance [skip ci]
This commit is contained in:
@@ -729,7 +729,8 @@ vector_spherical_distance(PG_FUNCTION_ARGS)
|
|||||||
PG_RETURN_FLOAT8(acos(distance) / M_PI);
|
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)
|
VectorL1Distance(int dim, float *ax, float *bx)
|
||||||
{
|
{
|
||||||
float distance = 0.0;
|
float distance = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user