Created
March 2, 2016 18:50
-
-
Save stowell/3607e372e471792189c1 to your computer and use it in GitHub Desktop.
compiles.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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