Commit f74a3cb3 authored by Berenger Bramas's avatar Berenger Bramas

Update all -- use std::size_t instead of size_t (requiere cstdio)

parent 78805a77
......@@ -567,7 +567,7 @@ public:
return _mm256_xor_pd(vec, minus0);
}
inline InaVecAVX<double> pow(size_t power) const{
inline InaVecAVX<double> pow(std::size_t power) const{
return InaUtils::FastPow<InaVecAVX<double>>(*this, power);
}
};
......
......@@ -551,7 +551,7 @@ public:
return _mm256_xor_ps(vec, minus0);
}
inline InaVecAVX<float> pow(size_t power) const{
inline InaVecAVX<float> pow(std::size_t power) const{
return InaUtils::FastPow<InaVecAVX<float>>(*this, power);
}
};
......
......@@ -596,7 +596,7 @@ public:
return _mm512_castsi512_pd(_mm512_xor_si512(_mm512_castpd_si512(vec), _mm512_castpd_si512(minus0)));
}
inline InaVecAVX512COMMON<double> pow(size_t power) const{
inline InaVecAVX512COMMON<double> pow(std::size_t power) const{
return InaUtils::FastPow<InaVecAVX512COMMON<double>>(*this, power);
}
};
......
......@@ -593,7 +593,7 @@ public:
return _mm512_castsi512_ps(_mm512_xor_si512(_mm512_castps_si512(vec), _mm512_castps_si512(minus0)));
}
inline InaVecAVX512COMMON<float> pow(size_t power) const{
inline InaVecAVX512COMMON<float> pow(std::size_t power) const{
return InaUtils::FastPow<InaVecAVX512COMMON<float>>(*this, power);
}
};
......
......@@ -5,6 +5,9 @@
#ifndef UTILS_HPP
#define UTILS_HPP
// for std::size_t
#include <cstdio>
namespace InaUtils {
template < class TypeSrc, class TypeDest >
......@@ -19,7 +22,7 @@ inline TypeDest ConvertBits(TypeSrc src) {
}
template <class VecType>
inline VecType FastPow(VecType base, size_t power){
inline VecType FastPow(VecType base, std::size_t power){
VecType res = VecType(1.);
while(power){
......
......@@ -536,7 +536,7 @@ public:
return _mm_xor_pd(vec, minus0);
}
inline InaVecSSE3<double> pow(size_t power) const{
inline InaVecSSE3<double> pow(std::size_t power) const{
return InaUtils::FastPow<InaVecSSE3<double>>(*this, power);
}
};
......
......@@ -527,7 +527,7 @@ public:
return _mm_xor_ps(vec, minus0);
}
inline InaVecSSE3<float> pow(size_t power) const{
inline InaVecSSE3<float> pow(std::size_t power) const{
return InaUtils::FastPow<InaVecSSE3<float>>(*this, power);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment