mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +08:00
Fixed headers
This commit is contained in:
@@ -1,9 +1,15 @@
|
|||||||
#ifndef HALFUTILS_H
|
#ifndef HALFUTILS_H
|
||||||
#define HALFUTILS_H
|
#define HALFUTILS_H
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "common/shortest_dec.h"
|
#include "common/shortest_dec.h"
|
||||||
#include "halfvec.h"
|
#include "halfvec.h"
|
||||||
|
|
||||||
|
#ifdef F16C_SUPPORT
|
||||||
|
#include <immintrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
extern float (*HalfvecL2SquaredDistance) (int dim, half * ax, half * bx);
|
extern float (*HalfvecL2SquaredDistance) (int dim, half * ax, half * bx);
|
||||||
extern float (*HalfvecInnerProduct) (int dim, half * ax, half * bx);
|
extern float (*HalfvecInnerProduct) (int dim, half * ax, half * bx);
|
||||||
|
|
||||||
|
|||||||
@@ -23,10 +23,6 @@
|
|||||||
#define TYPALIGN_INT 'i'
|
#define TYPALIGN_INT 'i'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef F16C_SUPPORT
|
|
||||||
#include <immintrin.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Get a half from a message buffer
|
* Get a half from a message buffer
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user