SSE: Difference between revisions

Jump to navigation Jump to search
36 bytes added ,  29 days ago
m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
m (Bot: Replace deprecated source tag with syntaxhighlight)
m (Bot: Replace deprecated source tag with syntaxhighlight)
Line 12:
=== Checking for SSE ===
to check for SSE CPUID.01h:EDX.SSE[bit 25] needs to be set
<sourcesyntaxhighlight lang="asm">
mov eax, 0x1
cpuid
Line 18:
jz .noSSE
;SSE is available
</syntaxhighlight>
</source>
 
=== Adding support ===
Line 28:
 
Here is an asm example:
<sourcesyntaxhighlight lang="asm">
;now enable SSE and the like
mov eax, cr0
Line 38:
mov cr4, eax
ret
</syntaxhighlight>
</source>
 
=== FXSAVE and FXRSTOR ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu