Uses four different methods and times each one.
- Single-Threaded using CPU
- Single-Threaded using SSE 4.2
- Multi-Threaded using CPU
- Multi-Threaded using SSE 4.2
This shows examples of using:
- malloc to allocate memory from the heap
- pthreads for multi-threaded applications in Linux
- Streaming SIMD Extensions (SSE 4.2)
- rdtsc to time and profile different functions / algorithms