mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +08:00
Fixed NaN [skip ci]
This commit is contained in:
@@ -94,8 +94,7 @@ Float4ToFp8Unchecked(float num)
|
|||||||
else if (isnan(num))
|
else if (isnan(num))
|
||||||
{
|
{
|
||||||
/* NaN */
|
/* NaN */
|
||||||
result |= 0x7C;
|
result |= 0x7F;
|
||||||
result |= mantissa >> 21;
|
|
||||||
}
|
}
|
||||||
else if (exponent > 98)
|
else if (exponent > 98)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user