genericsimd / generic_simd

Generic SIMD intrinsic to allow for portable SIMD intrinsic programming
Other
42 stars 7 forks source link

Generic SIMD Library

The Generic SIMD Library allowers users to write C++ SIMD codes that are portable across different SIMD ISAs.

Running examples

//HelloSIMD.cpp
#include <iostream>
#include <gsimd.h>

int main (int argc, char* argv[])
{
  svec<4,float> v1(1.1, 2.2, 3.3, 4.4);
  svec<4,float> v2 = v1 * 2;
  std::cout << "Hello World: " << v2 << std::endl;
  return 0;
}

Let's use the example above to illustrate some of the basics features of the library:

Key features

The library provides:

More Information