Skip to content

Instantly share code, notes, and snippets.

@stowell
Created March 2, 2016 18:50
Show Gist options
  • Save stowell/3607e372e471792189c1 to your computer and use it in GitHub Desktop.
Save stowell/3607e372e471792189c1 to your computer and use it in GitHub Desktop.
compiles.c
#include <xmmintrin.h>
int main(int argc, char* argv[]) {
__m128 vector1 = _mm_set1_ps(1); // Little endian, stored in 'reverse'
__m128 vector2 = _mm_set1_ps(2);
// Addition
__m128 result = _mm_add_ps(vector1, vector2);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment