|
@@ -55,9 +55,11 @@ function sse_support : boolean;
|
|
if cpuid_support then
|
|
if cpuid_support then
|
|
begin
|
|
begin
|
|
asm
|
|
asm
|
|
|
|
+ pushl %ebx
|
|
movl $1,%eax
|
|
movl $1,%eax
|
|
cpuid
|
|
cpuid
|
|
movl %edx,_edx
|
|
movl %edx,_edx
|
|
|
|
+ popl %ebx
|
|
end;
|
|
end;
|
|
sse_support:=((_edx and $2000000)<>0) and os_supports_sse;
|
|
sse_support:=((_edx and $2000000)<>0) and os_supports_sse;
|
|
end
|
|
end
|
|
@@ -77,9 +79,11 @@ function mmx_support : boolean;
|
|
if cpuid_support then
|
|
if cpuid_support then
|
|
begin
|
|
begin
|
|
asm
|
|
asm
|
|
|
|
+ pushl %ebx
|
|
movl $1,%eax
|
|
movl $1,%eax
|
|
cpuid
|
|
cpuid
|
|
movl %edx,_edx
|
|
movl %edx,_edx
|
|
|
|
+ popl %ebx
|
|
end;
|
|
end;
|
|
mmx_support:=(_edx and $800000)<>0;
|
|
mmx_support:=(_edx and $800000)<>0;
|
|
end
|
|
end
|