Skip to content

Commit

Permalink
Fix: Portable way of matching 32-bit builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Jul 29, 2023
1 parent 3500812 commit e10bd29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/usearch/index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
#endif

// Inferring hardware bitness: 32 vs 64
#if __WORDSIZE == 64
// https://stackoverflow.com/a/5273354
#if UINTPTR_MAX == 0xffffffff
#define USEARCH_64BIT_ENV
#else
#define USEARCH_32BIT_ENV
Expand Down

0 comments on commit e10bd29

Please sign in to comment.