diff options
author | Nikolay Bogoychev <nheart@gmail.com> | 2021-07-22 21:50:57 +0300 |
---|---|---|
committer | Nikolay Bogoychev <nheart@gmail.com> | 2021-07-22 21:50:57 +0300 |
commit | b99cc6ce0eb7ce3b6b09b29c6c9129a775083d60 (patch) | |
tree | 8f1e895f45f09915620788b74dd3a89867c8a95c | |
parent | b3b50715ebce4d27264c6badd192f84fa74eda7b (diff) |
windows compile v3hacky_nonmult8
-rw-r--r-- | intgemm/stats.inl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/intgemm/stats.inl b/intgemm/stats.inl index 1f8c557..90199be 100644 --- a/intgemm/stats.inl +++ b/intgemm/stats.inl @@ -65,9 +65,9 @@ INTGEMM_TARGET static inline float MaxAbsolute(const float *begin_float, const f INTGEMM_TARGET static inline MeanStd VectorMeanStd(const float *begin_float, const float *end_float, bool absolute) { assert(end_float > begin_float); // Make sure we deal with any number of elements - long num_items = end_float - begin_float; - const long constexpr width = sizeof(FRegister) / sizeof(float); - std::ldiv_t result = std::ldiv(num_items, width); + size_t num_items = end_float - begin_float; + const size_t constexpr width = sizeof(FRegister) / sizeof(float); + std::ldiv_t result = std::ldiv((long)num_items, (long)width); const FRegister *begin = reinterpret_cast<const FRegister*>(begin_float); const FRegister *end = reinterpret_cast<const FRegister*>(begin_float + result.quot*width); |