It seemed a little too easy to enable.
Here is where I got my instructions:
http://msdn.microsoft.com/library/d...ry/en-us/vclib/html/vclrf_set_SSE2_enable.asp
Is what I done logically correct? Syntaxly speaking it is. I get no warnings or errors.
PS: Anyone have any SSE/SSE2 libraries I can download?
I son't want to end up coding in assembly just to use further functions of SSE2. The SSE2 functions in the cmath library are limited.
I read up about SSE2 and I know that it should only be used on really complex calculations otherwise it will only slow your code down.
Thanks
Here is where I got my instructions:
http://msdn.microsoft.com/library/d...ry/en-us/vclib/html/vclrf_set_SSE2_enable.asp
Is what I done logically correct? Syntaxly speaking it is. I get no warnings or errors.
Code:
#include <iostream>
#include <cmath>
using namespace std;
int _set_SSE2_enable(int flag);
void main(void)
{
_set_SSE2_enable(1);
double a, b, c;
a = 5.6332;
b = 10.32;
c = 16.64;
c = pow(a*b, c);
cout << c << endl;
}
int _set_SSE2_enable(int flag)
{
return 1;
}
PS: Anyone have any SSE/SSE2 libraries I can download?
I son't want to end up coding in assembly just to use further functions of SSE2. The SSE2 functions in the cmath library are limited.
I read up about SSE2 and I know that it should only be used on really complex calculations otherwise it will only slow your code down.
Thanks