[sldev] SSE2 on MSVC
Nicholaz Beresford
nicholaz at blueflash.cc
Sun Jun 17 15:47:00 PDT 2007
Dunno if the code bit below makes any sense (I haven't got
much idea what SSE2 is, despite having read it on Wikipedia),
but what do you think?
//
// enable MSFT SSE2 extensions
//
CProcessor cproc;
const ProcessorInfo *pinfo= cproc.GetCPUInfo();
int sse2= FALSE;
if (pinfo->_Ext.SSE2_StreamingSIMD2_Extensions) {
// http://msdn2.microsoft.com/en-us/library/bthd138d(VS.80).aspx
sse2= _set_SSE2_enable(TRUE);
}
llinfos << "running with" << (!sse2 ? "out" : "" ) << " _set_sse2_enabled " << llendl;
Nick
--
Second Life from the inside out:
http://nicholaz-beresford.blogspot.com/
More information about the SLDev
mailing list