Skip to content

Commit c092ef9

Browse files
authored
Merge pull request JishinMaster#4 from JoachimSchurig/jschurig/aarch64-AppleClang
fixing build on Apple ARM
2 parents 9f8bc0f + 2ea56b1 commit c092ef9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

simd_utils.h

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ extern "C" {
2020
#endif
2121

2222
#include <math.h>
23+
#include <fenv.h>
2324
#include <stdint.h>
2425
#include <stdio.h>
2526

simd_utils_constants.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ _PI64_CONST(1023, (unsigned int) 1023);
979979
_PD_CONST_TYPE(zero, int, (int) 0x00000000);
980980
_PD_CONST_TYPE(min_norm_pos, int64_t, 0x380ffff83ce549caL);
981981
_PD_CONST_TYPE(mant_mask, int64_t, 0xFFFFFFFFFFFFFL);
982-
_PD_CONST_TYPE(inv_mant_mask, int64_t, 0x800FFFFFFFFFFFFFL);
982+
_PD_CONST_TYPE(inv_mant_mask, int64_t, (int64_t) 0x800FFFFFFFFFFFFFL);
983983
_PD_CONST_TYPE(sign_mask, int64_t, (int64_t) 0x8000000000000000L);
984984
_PD_CONST_TYPE(inv_sign_mask, int64_t, ~0x8000000000000000L);
985985
_PD_CONST_TYPE(pos_sign_mask, int64_t, 0xFFFFFFFFFFFFFL);

simd_utils_sse_double.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ static inline void exp128d(double *src, double *dst, int len)
12071207
}
12081208
}
12091209

1210-
v2sd log_pd(v2sd x)
1210+
static inline v2sd log_pd(v2sd x)
12111211
{
12121212
v2sd y, z;
12131213

0 commit comments

Comments
 (0)