usearch 0.9.5 → 0.9.6
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/Cargo.toml +1 -1
- package/VERSION +1 -1
- package/conanfile.py +1 -1
- package/package.json +1 -1
- package/src/punned.hpp +8 -2
package/Cargo.toml
CHANGED
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.6
|
package/conanfile.py
CHANGED
|
@@ -4,7 +4,7 @@ from conans import ConanFile
|
|
|
4
4
|
class USearchConan(ConanFile):
|
|
5
5
|
|
|
6
6
|
name = 'USearch'
|
|
7
|
-
version = '0.9.
|
|
7
|
+
version = '0.9.6'
|
|
8
8
|
license = 'Apache 2.0'
|
|
9
9
|
url = 'https://github.com/unum-cloud/usearch'
|
|
10
10
|
description = 'Smaller & Faster Single-File Vector Search Engine from Unum'
|
package/package.json
CHANGED
package/src/punned.hpp
CHANGED
|
@@ -538,13 +538,19 @@ class punned_gt {
|
|
|
538
538
|
private:
|
|
539
539
|
static index_t* aligned_index_alloc_() {
|
|
540
540
|
#if defined(USEARCH_IS_WINDOWS)
|
|
541
|
-
return (index_t*)_aligned_malloc(64
|
|
541
|
+
return (index_t*)_aligned_malloc(64 * divide_round_up<64>(sizeof(index_t)), 64);
|
|
542
542
|
#else
|
|
543
543
|
return (index_t*)aligned_alloc(64, 64 * divide_round_up<64>(sizeof(index_t)));
|
|
544
544
|
#endif
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
static void aligned_index_free_(index_t* raw) {
|
|
547
|
+
static void aligned_index_free_(index_t* raw) {
|
|
548
|
+
#if defined(USEARCH_IS_WINDOWS)
|
|
549
|
+
_aligned_free(raw);
|
|
550
|
+
#else
|
|
551
|
+
free(raw);
|
|
552
|
+
#endif
|
|
553
|
+
}
|
|
548
554
|
|
|
549
555
|
struct thread_lock_t {
|
|
550
556
|
punned_gt const& parent;
|