usearch 2.19.12 → 2.19.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -483,8 +483,8 @@ class f16_bits_t {
|
|
|
483
483
|
inline operator float() const noexcept { return f16_to_f32(uint16_); }
|
|
484
484
|
inline explicit operator bool() const noexcept { return f16_to_f32(uint16_) > 0.5f; }
|
|
485
485
|
|
|
486
|
-
inline f16_bits_t(int v) noexcept : uint16_(f32_to_f16(v)) {}
|
|
487
|
-
inline f16_bits_t(bool v) noexcept : uint16_(f32_to_f16(v)) {}
|
|
486
|
+
inline f16_bits_t(int v) noexcept : uint16_(f32_to_f16(static_cast<float>(v))) {}
|
|
487
|
+
inline f16_bits_t(bool v) noexcept : uint16_(f32_to_f16(static_cast<float>(v))) {}
|
|
488
488
|
inline f16_bits_t(float v) noexcept : uint16_(f32_to_f16(v)) {}
|
|
489
489
|
inline f16_bits_t(double v) noexcept : uint16_(f32_to_f16(static_cast<float>(v))) {}
|
|
490
490
|
|
|
@@ -547,8 +547,8 @@ class bf16_bits_t {
|
|
|
547
547
|
inline operator float() const noexcept { return bf16_to_f32(uint16_); }
|
|
548
548
|
inline explicit operator bool() const noexcept { return bf16_to_f32(uint16_) > 0.5f; }
|
|
549
549
|
|
|
550
|
-
inline bf16_bits_t(int v) noexcept : uint16_(f32_to_bf16(v)) {}
|
|
551
|
-
inline bf16_bits_t(bool v) noexcept : uint16_(f32_to_bf16(v)) {}
|
|
550
|
+
inline bf16_bits_t(int v) noexcept : uint16_(f32_to_bf16(static_cast<float>(v))) {}
|
|
551
|
+
inline bf16_bits_t(bool v) noexcept : uint16_(f32_to_bf16(static_cast<float>(v))) {}
|
|
552
552
|
inline bf16_bits_t(float v) noexcept : uint16_(f32_to_bf16(v)) {}
|
|
553
553
|
inline bf16_bits_t(double v) noexcept : uint16_(f32_to_bf16(static_cast<float>(v))) {}
|
|
554
554
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|