I want to implement 5%3=2 by avx.
normal: int64 x = a % b
math: int64 x = a-((double)a/b)*b
avx:
__m256 tmp1 = _mm256_cvtepi32_ps(data);
I need convert a big number from int64 to float, then float overflow.
how to solve overflow when convert int64 to float?