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
@@ -550,7 +550,7 @@ doi = {10.5281/zenodo.7949416},
550
550
  author = {Vardanian, Ash},
551
551
  title = {{USearch by Unum Cloud}},
552
552
  url = {https://github.com/unum-cloud/usearch},
553
- version = {2.19.12},
553
+ version = {2.19.14},
554
554
  year = {2023},
555
555
  month = oct,
556
556
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  #define USEARCH_VERSION_MAJOR 2
11
11
  #define USEARCH_VERSION_MINOR 19
12
- #define USEARCH_VERSION_PATCH 12
12
+ #define USEARCH_VERSION_PATCH 14
13
13
 
14
14
  // Inferring C++ version
15
15
  // https://stackoverflow.com/a/61552074
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "2.19.12",
3
+ "version": "2.19.14",
4
4
  "description": "Smaller & Faster Single-File Vector Search Engine from Unum",
5
5
  "author": "Ash Vardanian (https://ashvardanian.com/)",
6
6
  "license": "Apache 2.0",
Binary file
Binary file