Skip to content

Commit ca49719

Browse files
authored
Don't use vector types on MSVC as arrays (#69)
1 parent 00f634e commit ca49719

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

zmij.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,10 @@ auto write_significand17(char* buffer, uint64_t value,
502502
// An optimized version for NEON by Dougall Johnson.
503503
constexpr int32_t neg10k = -10000 + 0x10000;
504504
struct to_string_constants {
505+
#ifdef _MSC_VER
506+
using int32x4_t = std::int32_t[4];
507+
using int16x8_t = std::int16_t[8];
508+
#endif
505509
uint64_t mul_const = 0xabcc77118461cefd;
506510
uint64_t hundred_million = 100000000;
507511
int32x4_t multipliers32 = {div10k_sig, neg10k, div100_sig << 12, neg100};

0 commit comments

Comments
 (0)