Inner

Shorts, ints, floats and doubles with CPU / FPU and SSE for comparison
Download

Inner Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Chesnokov Yuriy
  • Publisher web site:
  • http://www.codeproject.com/Members/Chesnokov-Yuriy
  • Operating Systems:
  • Windows All
  • File Size:
  • 10 KB

Inner Tags


Inner Description

This tool was developed to be a small test tool which demonstrates inner product operation performed with shorts, ints, floats and doubles with CPU / FPU and SSE for comparison. The inner product (or dot product, scalar product) operation is the major one in digital signal processing field. It is used everywhere, Fourier (FFT, DCT), wavelet-analysis, filtering operations and so on. With advances of SSE technology you can parallelize this operation to perform multiplication and addition on several numbers instantly. However what precision in calculations to choose, integer, floats, doubles? In this article I demonstrate inner product operation on shorts, ints, floats, doubles performed with both CPU and SSE/SSE2/SSE3 optimized versions.Just run the console application and provide the first argument as the length of array for inner product. It creates 2 vectors of the same length with random entries and computes their inner product printing the results and processing times for chars, shorts/shorts SSE2, ins, floats/floats SSE/floats SSE3, doubles/doubles SSE2.


Inner Related Software