Determine processor support for SSE2?

后端 未结 4 1119
囚心锁ツ
囚心锁ツ 2020-12-15 23:10

I need to do determine processor support for SSE2 prior installing a software. From what I understand, I came up with this:

bool TestSSE2(char * szErrorMsg)
         


        
4条回答
  •  误落风尘
    2020-12-15 23:39

    The most basic way to check for SSE2 support is by using the CPUID instruction (on platforms where it is available). Either using inline assembly or using compiler intrinsics.

提交回复
热议问题