SSE: Difference between revisions

Jump to navigation Jump to search
308 bytes added ,  12 years ago
→‎Adding support: added an asm example
[unchecked revision][unchecked revision]
(Placed in SSE category)
(→‎Adding support: added an asm example)
Line 13:
set the CR4.OSFXSR bit (bit 9) [ CR4 |= (1 << 9) ]
set the CR4.OSXMMEXCPT bit (bit 10) [ CR4 |= (1 << 10) ]
 
Here is an asm example:
<source lang="asm">
;now enable SSE and the like
mov eax, cr0
and ax, 0xFFFB ;clear coprocessor emulation CR0.EM
or ax, 0x2 ;set coprocessor monitoring CR0.MP
mov cr0, eax
mov eax, cr4
or ax, 3 << 9 ;set CR4.OSFXSR and CR4.OSXMMEXCPT at the same time
mov cr4, eax
ret
</source>
 
=== FXSAVE and FXRSTOR ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu