Last active
January 7, 2018 01:21
-
-
Save CookiePLMonster/83333946b821269024a3156ebf714116 to your computer and use it in GitHub Desktop.
SSE2 sincos VS15.5.2 issue
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 <iostream> | |
#include <cmath> | |
// Compile in Release, x86 | |
// /arch:IA32, /fp:fast | |
// Resulting code contains SSE opcodes and calls ___libm_sse2_sincosf_ | |
int main() | |
{ | |
float val = 0.0f; | |
std::cin >> val; | |
const float sine = sin(val); | |
const float cosine = cos(val); | |
std::cout << sine << " " << cosine << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment