usearch 2.19.19 → 2.19.20

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.19},
553
+ version = {2.19.20},
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 19
12
+ #define USEARCH_VERSION_PATCH 20
13
13
 
14
14
  // Inferring C++ version
15
15
  // https://stackoverflow.com/a/61552074
@@ -55,13 +55,14 @@
55
55
  #endif
56
56
 
57
57
  // Inferring hardware bitness: 32 vs 64
58
+ // Using compiler predefined macros for is technically safer than including `<cstdint>` and
59
+ // using the commonly advised `UINTPTR_MAX` trick, as that constant is optional in standard C/C++.
58
60
  // https://stackoverflow.com/a/5273354
59
- #if INTPTR_MAX == INT64_MAX
61
+ // https://en.cppreference.com/w/cpp/types/integer.html
62
+ #if defined(_WIN64) || defined(__LP64__) || defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__)
60
63
  #define USEARCH_64BIT_ENV
61
- #elif INTPTR_MAX == INT32_MAX
62
- #define USEARCH_32BIT_ENV
63
64
  #else
64
- #error Unknown pointer size or missing size macros!
65
+ #define USEARCH_32BIT_ENV
65
66
  #endif
66
67
 
67
68
  #if !defined(USEARCH_USE_OPENMP)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "2.19.19",
3
+ "version": "2.19.20",
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