From d472416d3e24ecc00083369d0a91c2ce1144f295 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 7 Jun 2012 11:59:59 +0000 Subject: removed not needed files git-svn-id: http://svn.miranda-ng.org/main/trunk@354 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Modernb/_disabled_src/stdafx.cpp | 56 -------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 plugins/Modernb/_disabled_src/stdafx.cpp (limited to 'plugins/Modernb/_disabled_src/stdafx.cpp') diff --git a/plugins/Modernb/_disabled_src/stdafx.cpp b/plugins/Modernb/_disabled_src/stdafx.cpp deleted file mode 100644 index 6856e97c85..0000000000 --- a/plugins/Modernb/_disabled_src/stdafx.cpp +++ /dev/null @@ -1,56 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// MMXSwarm.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information -// Also includes utility functions that rarely change. -// -// This is a part of the Microsoft Foundation Classes C++ library. -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// This source code is only intended as a supplement to the -// Microsoft Foundation Classes Reference and related -// electronic documentation provided with the library. -// See these sources for detailed information regarding the -// Microsoft Foundation Classes product. -// -#include "stdafx.h" -#include -#include - -static bool _IsMMX(); - -bool IsMMX() -{ - static bool bMMX = _IsMMX(); - return(bMMX); -} - -static bool _IsMMX() -{ - // This bit flag can get set on calling cpuid - // with register eax set to 1 - const int _MMX_FEATURE_BIT = 0x00800000; - DWORD dwFeature = 0; - __try { - _asm { - mov eax,1 - cpuid - mov dwFeature,edx - } - } __except ( EXCEPTION_EXECUTE_HANDLER) { - return false; - } - if (dwFeature & _MMX_FEATURE_BIT) { - __try { - __asm { - pxor mm0, mm0 - emms - } - } __except (EXCEPTION_EXECUTE_HANDLER) { - return (0); - } - return(true); - } - - return false; -} - -- cgit v1.2.3