Skip to content

Instantly share code, notes, and snippets.

@CookiePLMonster
Last active January 7, 2018 01:21
Show Gist options
  • Save CookiePLMonster/83333946b821269024a3156ebf714116 to your computer and use it in GitHub Desktop.
Save CookiePLMonster/83333946b821269024a3156ebf714116 to your computer and use it in GitHub Desktop.
SSE2 sincos VS15.5.2 issue
#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