- Aug
- 2,145
- 92
Here are some functions, along with a batch file, showing how to determine
whether your processor supports certain instruction sets;
This works on;
Joe
whether your processor supports certain instruction sets;
Code:
@setlocal
@echo off
function SSE=`%@winapi[cpuid,SSE_IsSupported]`
function SSE42=`%@winapi[cpuid,SSE42_IsSupported]`
function MMX=`%@winapi[cpuid,MMX_IsSupported]`
function HTT=`%@winapi[cpuid,HTT_IsSupported]`
iff %@SSE[] eq 1 then
echo Your Processor Supports SSE
else
echo Your Processor Does Not Support SSE
endiff
iff %@SSE42[] eq 1 then
echo Your Processor Supports SSE42
else
echo Your Processor Does Not Support SSE42
endiff
iff %@MMX[] eq 1 then
echo Your Processor Supports MMX
else
echo Your Processor Does Not Support MMX
endiff
iff %@HTT[] eq 1 then
echo Your Processor Supports HTT
else
echo Your Processor Does Not Support HTT
endiff
endlocal
Code:
TCC 11.00.39 Windows XP [Version 5.1.2600]
TCC Build 39 Windows XP Build 2600 Service Pack 3