From 17d730ae32f5f60c9c2ca75d202b4e866debd686 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Fri, 19 Aug 2022 13:12:50 -0600 Subject: DEP: drop support for msvc<=1900 and Interix (#22139) [ci skip] Co-authored-by: h-vetinari --- numpy/random/src/pcg64/pcg64.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/random/src') diff --git a/numpy/random/src/pcg64/pcg64.h b/numpy/random/src/pcg64/pcg64.h index fb8281201..96ee7af85 100644 --- a/numpy/random/src/pcg64/pcg64.h +++ b/numpy/random/src/pcg64/pcg64.h @@ -128,7 +128,7 @@ static inline pcg128_t pcg128_add(pcg128_t a, pcg128_t b) { static inline void _pcg_mult64(uint64_t x, uint64_t y, uint64_t *z1, uint64_t *z0) { -#if defined _WIN32 && _MSC_VER >= 1900 && _M_AMD64 +#if defined _WIN32 && _M_AMD64 z0[0] = _umul128(x, y, z1); #else uint64_t x0, x1, y0, y1; @@ -182,7 +182,7 @@ static inline void pcg_setseq_128_srandom_r(pcg_state_setseq_128 *rng, static inline uint64_t pcg_setseq_128_xsl_rr_64_random_r(pcg_state_setseq_128 *rng) { -#if defined _WIN32 && _MSC_VER >= 1900 && _M_AMD64 +#if defined _WIN32 && _M_AMD64 uint64_t h1; pcg128_t product; @@ -212,7 +212,7 @@ static inline pcg128_t pcg128_mult_64(pcg128_t a, uint64_t b) { } static inline void pcg_cm_step_r(pcg_state_setseq_128 *rng) { -#if defined _WIN32 && _MSC_VER >= 1900 && _M_AMD64 +#if defined _WIN32 && _M_AMD64 uint64_t h1; pcg128_t product; @@ -255,7 +255,7 @@ static inline uint64_t pcg_cm_random_r(pcg_state_setseq_128* rng) hi *= lo; /* Run the CM step. */ -#if defined _WIN32 && _MSC_VER >= 1900 && _M_AMD64 +#if defined _WIN32 && _M_AMD64 uint64_t h1; pcg128_t product; -- cgit v1.2.1