#include <precomp.h>
Go to the source code of this file.
◆ _fpreset()
Definition at line 13 of file fpreset.c.
14{
15 const unsigned short x86_cw = 0x27f;
16#ifdef _MSC_VER
17 __asm { fninit }
18 __asm { fldcw [x86_cw] }
19#else
20 __asm__ __volatile__(
"fninit; fldcw %0" : :
"m" (x86_cw) );
21#endif
23 {
24 const unsigned long sse2_cw = 0x1f80;
25#ifdef _MSC_VER
26 __asm { ldmxcsr [sse2_cw] }
27#else
28 __asm__ __volatile__(
"ldmxcsr %0" : :
"m" (sse2_cw) );
29#endif
30 }
31}
BOOL WINAPI IsProcessorFeaturePresent(IN DWORD ProcessorFeature)
__asm__(".p2align 4, 0x90\n" ".seh_proc __seh2_global_filter_func\n" "__seh2_global_filter_func:\n" "\tsub %rbp, %rax\n" "\tpush %rbp\n" "\t.seh_pushreg %rbp\n" "\tpush %rbx\n" "\t.seh_pushreg %rbx\n" "\tpush %rdi\n" "\t.seh_pushreg %rdi\n" "\tpush %rsi\n" "\t.seh_pushreg %rsi\n" "\tpush %r12\n" "\t.seh_pushreg %r12\n" "\tpush %r13\n" "\t.seh_pushreg %r13\n" "\tpush %r14\n" "\t.seh_pushreg %r14\n" "\tpush %r15\n" "\t.seh_pushreg %r15\n" "\tsub $40, %rsp\n" "\t.seh_stackalloc 40\n" "\t.seh_endprologue\n" "\tsub %rax, %rdx\n" "\tmov %rdx, %rbp\n" "\tjmp *%r8\n" "__seh2_global_filter_func_exit:\n" "\t.p2align 4\n" "\tadd $40, %rsp\n" "\tpop %r15\n" "\tpop %r14\n" "\tpop %r13\n" "\tpop %r12\n" "\tpop %rsi\n" "\tpop %rdi\n" "\tpop %rbx\n" "\tpop %rbp\n" "\tret\n" "\t.seh_endproc")
#define PF_XMMI64_INSTRUCTIONS_AVAILABLE
Referenced by _gnu_exception_handler(), START_TEST(), Test_controlfp(), and Test_exceptions().