mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-28 14:52:43 +08:00
Improved CreateStateDatums [skip ci]
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#endif
|
||||
|
||||
#define STATE_DIMS(x) (ARR_DIMS(x)[0] - 1)
|
||||
#define CreateStateDatums(dim) palloc_array(Datum, (dim + 1))
|
||||
#define CreateStateDatums(dim) palloc_array(Datum, (dim) + 1)
|
||||
|
||||
/*
|
||||
* Get a half from a message buffer
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#endif
|
||||
|
||||
#define STATE_DIMS(x) (ARR_DIMS(x)[0] - 1)
|
||||
#define CreateStateDatums(dim) palloc_array(Datum, (dim + 1))
|
||||
#define CreateStateDatums(dim) palloc_array(Datum, (dim) + 1)
|
||||
|
||||
#if defined(USE_TARGET_CLONES) && !defined(__FMA__)
|
||||
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma")))
|
||||
|
||||
Reference in New Issue
Block a user