标签:window %s sse represent slow metrics mac ons struct
#include <iostream> #include <Windows.h> #include <TCHAR.h> int main() { if(IsProcessorFeaturePresent(PF_3DNOW_INSTRUCTIONS_AVAILABLE)) printf("当前CPU支持3DNow技术\n"); else printf("当前CPU不支持3DNow技术\n"); if(IsProcessorFeaturePresent(PF_MMX_INSTRUCTIONS_AVAILABLE)) printf("当前CPU支持MMX技术\n"); else printf("当前CPU不支持MMX技术\n"); if(IsProcessorFeaturePresent(PF_XMMI_INSTRUCTIONS_AVAILABLE)) printf("当前CPU支持SSE技术\n"); else printf("当前CPU不支持SSE技术\n"); if(GetSystemMetrics(SM_SLOWMACHINE)) printf("当前处理器是低端处理器\n"); else printf("当前处理器是低端处理器\n"); wchar_t butter[MAX_PATH]; GetEnvironmentVariable(L"PROCESSOR_ARCHITECTURE",butter,MAX_PATH); _tprintf(L"%s\n",butter); return 0; }
IsProcessorFeaturePresent 获取处理器信息
标签:window %s sse represent slow metrics mac ons struct
原文地址:https://www.cnblogs.com/Open-Source/p/12879722.html