I'm getting the warnings below. Could you please have a look to see if these can be fixed?
Thanks a lot!
Jirka
mini-pi_optimized_3_OpenMP.cpp: In function ‘void Mini_Pi::fft_forward(__m128d*, int, int)’:
mini-pi_optimized_3_OpenMP.cpp:164:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
164 | for (int c = 0; c < half_length; c++){
| ~~^~~~~~~~~~~~~
mini-pi_optimized_3_OpenMP.cpp: In function ‘void Mini_Pi::fft_inverse(__m128d*, int, int)’:
mini-pi_optimized_3_OpenMP.cpp:260:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
260 | for (int c = 0; c < half_length; c++){
| ~~^~~~~~~~~~~~~
mini-pi_optimized_3_OpenMP.cpp: In member function ‘Mini_Pi::BigFloat Mini_Pi::BigFloat::mul(const Mini_Pi::BigFloat&, size_t, int) const’:
mini-pi_optimized_3_OpenMP.cpp:937:53: warning: ignoring attributes on template argument ‘__m128d []’ [-Wignored-attributes]
937 | auto Ta = std::unique_ptr<__m128d[], SIMD_delete>((__m128d*)_mm_malloc(length * sizeof(__m128d), 16), deletor);
| ^
mini-pi_optimized_3_OpenMP.cpp:938:53: warning: ignoring attributes on template argument ‘__m128d []’ [-Wignored-attributes]
938 | auto Tb = std::unique_ptr<__m128d[], SIMD_delete>((__m128d*)_mm_malloc(length * sizeof(__m128d), 16), deletor);
| ^
When compiling with
I'm getting the warnings below. Could you please have a look to see if these can be fixed?
Thanks a lot!
Jirka