File tree 1 file changed +5
-8
lines changed
cpp/src/arrow/vendored/fast_float
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 8
8
#include < strings.h>
9
9
#endif
10
10
11
- #if defined(_MSC_VER) && !defined(__clang__)
12
- #define FASTFLOAT_VISUAL_STUDIO 1
13
- #endif
14
-
15
- #ifdef FASTFLOAT_VISUAL_STUDIO
11
+ #ifdef _MSC_VER
16
12
#define fastfloat_really_inline __forceinline
17
13
#else
18
14
#define fastfloat_really_inline inline __attribute__ ((always_inline))
19
15
#endif
20
16
21
- #ifdef _MSC_VER
17
+ #ifdef _WIN32
22
18
#define fastfloat_strcasecmp _stricmp
23
19
#define fastfloat_strncasecmp _strnicmp
24
20
#else
@@ -59,7 +55,7 @@ struct value128 {
59
55
/* result might be undefined when input_num is zero */
60
56
fastfloat_really_inline
61
57
int leading_zeroes (uint64_t input_num) {
62
- #ifdef FASTFLOAT_VISUAL_STUDIO
58
+ #ifdef _MSC_VER
63
59
unsigned long leading_zero = 0 ;
64
60
// Search the mask data from most significant bit (MSB)
65
61
// to least significant bit (LSB) for a set bit (1).
@@ -73,7 +69,8 @@ int leading_zeroes(uint64_t input_num) {
73
69
}
74
70
75
71
76
- #ifdef FASTFLOAT_VISUAL_STUDIO
72
+ #if defined(_WIN32) && !defined(__clang__)
73
+ // Note MinGW falls here too
77
74
#include < intrin.h>
78
75
79
76
#if !defined(_M_X64) && !defined(_M_ARM64)// _umul128 for x86, arm
You can’t perform that action at this time.
0 commit comments