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