Initial Windows ARM64 support via MSYS2.

This commit is contained in:
XMRig 2025-06-13 03:00:34 +07:00
parent 064a61988a
commit 650d794fb1
No known key found for this signature in database
GPG key ID: 446A53638BE94409
6 changed files with 26 additions and 17 deletions

View file

@ -392,13 +392,17 @@ FORCE_INLINE rx_vec_f128 rx_cvt_packed_int_vec_f128(const void* addr) {
typedef uint8x16_t rx_vec_i128;
typedef float64x2_t rx_vec_f128;
#if !defined(XMRIG_OS_WIN) // FIXME
inline void* rx_aligned_alloc(size_t size, size_t align) {
void* p;
if (posix_memalign(&p, align, size) == 0)
return p;
void* p;
if (posix_memalign(&p, align, size) == 0)
return p;
return 0;
return 0;
};
#else
# define rx_aligned_alloc(a, b) malloc(a)
#endif
#define rx_aligned_free(a) free(a)