diff options
author | Nikolay Bogoychev <nheart@gmail.com> | 2021-07-22 21:35:34 +0300 |
---|---|---|
committer | Nikolay Bogoychev <nheart@gmail.com> | 2021-07-22 21:35:34 +0300 |
commit | b3b50715ebce4d27264c6badd192f84fa74eda7b (patch) | |
tree | 528220d9ab4e9925c052bcd4896a321cb53176a3 | |
parent | c66a23f7aa6651aea3d3ae71e75976f99da7a027 (diff) |
try to fix windows compilation
-rw-r--r-- | intgemm/stats.inl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intgemm/stats.inl b/intgemm/stats.inl index d5e7f75..1f8c557 100644 --- a/intgemm/stats.inl +++ b/intgemm/stats.inl @@ -65,8 +65,8 @@ 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 - size_t num_items = end_float - begin_float; - const size_t constexpr width = sizeof(FRegister) / sizeof(float); + long num_items = end_float - begin_float; + const long constexpr width = sizeof(FRegister) / sizeof(float); std::ldiv_t result = std::ldiv(num_items, width); const FRegister *begin = reinterpret_cast<const FRegister*>(begin_float); |