usearch 2.15.1 → 2.15.2

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
@@ -32,7 +32,7 @@ Spatial • Binary • Probabilistic • User-Defined Metrics
32
32
  <a href="https://unum-cloud.github.io/usearch/golang">GoLang</a> •
33
33
  <a href="https://unum-cloud.github.io/usearch/wolfram">Wolfram</a>
34
34
  <br/>
35
- Linux • MacOS • Windows • iOS • WebAssembly •
35
+ Linux • MacOS • Windows • iOS • Android • WebAssembly •
36
36
  <a href="https://unum-cloud.github.io/usearch/sqlite">SQLite3</a>
37
37
  </p>
38
38
 
@@ -544,7 +544,7 @@ doi = {10.5281/zenodo.7949416},
544
544
  author = {Vardanian, Ash},
545
545
  title = {{USearch by Unum Cloud}},
546
546
  url = {https://github.com/unum-cloud/usearch},
547
- version = {2.15.1},
547
+ version = {2.15.2},
548
548
  year = {2023},
549
549
  month = oct,
550
550
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  #define USEARCH_VERSION_MAJOR 2
11
11
  #define USEARCH_VERSION_MINOR 15
12
- #define USEARCH_VERSION_PATCH 1
12
+ #define USEARCH_VERSION_PATCH 2
13
13
 
14
14
  // Inferring C++ version
15
15
  // https://stackoverflow.com/a/61552074
@@ -27,6 +27,9 @@
27
27
  #define USEARCH_DEFINED_APPLE
28
28
  #elif defined(__linux__)
29
29
  #define USEARCH_DEFINED_LINUX
30
+ #if defined(__ANDROID_API__)
31
+ #define USEARCH_DEFINED_ANDROID
32
+ #endif
30
33
  #endif
31
34
 
32
35
  // Inferring the compiler: Clang vs GCC
@@ -774,9 +774,9 @@ class aligned_allocator_gt {
774
774
  std::size_t alignment = alignment_ak;
775
775
  #if defined(USEARCH_DEFINED_WINDOWS)
776
776
  return (pointer)_aligned_malloc(length_bytes, alignment);
777
- #elif defined(USEARCH_DEFINED_APPLE)
777
+ #elif defined(USEARCH_DEFINED_APPLE) || defined(USEARCH_DEFINED_ANDROID)
778
778
  // Apple Clang keeps complaining that `aligned_alloc` is only available
779
- // with macOS 10.15 and newer, so let's use `posix_memalign` there.
779
+ // with macOS 10.15 and newer or Android API >= 28, so let's use `posix_memalign` there.
780
780
  void* result = nullptr;
781
781
  int status = posix_memalign(&result, alignment, length_bytes);
782
782
  return status == 0 ? (pointer)result : nullptr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usearch",
3
- "version": "2.15.1",
3
+ "version": "2.15.2",
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