pgvector.git / summary / log / commit / refs

commit    aed463dbad09daed3f830ffb9f815266c12f9a72
Author:   Andrew Kane <andrew@ankane.org>
Date:     Fri Apr 12 18:58:27 2024 +0000

    Fixed headers


src/halfutils.h | 6 ++++++ src/halfvec.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/halfutils.h b/src/halfutils.h index 2ce01550..66ad23dc 100644 --- a/src/halfutils.h +++ b/src/halfutils.h @@ -1,9 +1,15 @@ #ifndef HALFUTILS_H #define HALFUTILS_H +#include <math.h> + #include "common/shortest_dec.h" #include "halfvec.h" +#ifdef F16C_SUPPORT +#include <immintrin.h> +#endif + extern float (*HalfvecL2SquaredDistance) (int dim, half * ax, half * bx); extern float (*HalfvecInnerProduct) (int dim, half * ax, half * bx); diff --git a/src/halfvec.c b/src/halfvec.c index decc1a21..2c1108b9 100644 --- a/src/halfvec.c +++ b/src/halfvec.c @@ -23,10 +23,6 @@ #define TYPALIGN_INT 'i' #endif -#ifdef F16C_SUPPORT -#include <immintrin.h> -#endif - /* * Get a half from a message buffer */ [parent: f64abe3aaee6]