mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-13 16:16:56 +08:00
Removed unneeded comments [skip ci]
This commit is contained in:
@@ -67,9 +67,6 @@ HalfToFloat4(half num)
|
|||||||
#elif defined(FLT16_SUPPORT)
|
#elif defined(FLT16_SUPPORT)
|
||||||
return (float) num;
|
return (float) num;
|
||||||
#else
|
#else
|
||||||
/* TODO Improve performance */
|
|
||||||
|
|
||||||
/* Assumes same endianness for floats and integers */
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
float f;
|
float f;
|
||||||
@@ -154,9 +151,6 @@ Float4ToHalfUnchecked(float num)
|
|||||||
#elif defined(FLT16_SUPPORT)
|
#elif defined(FLT16_SUPPORT)
|
||||||
return (_Float16) num;
|
return (_Float16) num;
|
||||||
#else
|
#else
|
||||||
/* TODO Improve performance */
|
|
||||||
|
|
||||||
/* Assumes same endianness for floats and integers */
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
float f;
|
float f;
|
||||||
|
|||||||
@@ -244,7 +244,6 @@ sparsevec_in(PG_FUNCTION_ARGS)
|
|||||||
long index;
|
long index;
|
||||||
float value;
|
float value;
|
||||||
|
|
||||||
/* TODO Better error */
|
|
||||||
if (nnz == maxNnz)
|
if (nnz == maxNnz)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
(errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
|
||||||
|
|||||||
Reference in New Issue
Block a user