A more efficient way to get the absolute difference of the arrays of two memory blocks To loop on array elements, double in C / C ++, I wonder if
memset ,
memcpy for this purpose ,
How do you define the difference?
There are
double values in memory blocks, and what I want is a sum of the full numerical difference between
Yes, there is. If you use GCC, you can try to add things like
-msse2 -O3 and see if it automatically generates SIM instructions for you, if this happens or If you choose to use a library to clear SIMD, you can process four float per instruction. To improve your chances, try to make your inner loop good and simple so that the adapter can easily settle it.
No comments:
Post a Comment