#include <precomp.h>
#include "float.h"
Go to the source code of this file.
◆ _SW_DENORMAL
◆ _SW_INEXACT
◆ _SW_INVALID
| #define _SW_INVALID 0x00000010 /* invalid */ |
◆ _SW_OVERFLOW
| #define _SW_OVERFLOW 0x00000004 /* overflow */ |
◆ _SW_UNDERFLOW
| #define _SW_UNDERFLOW 0x00000002 /* underflow */ |
◆ _SW_ZERODIVIDE
| #define _SW_ZERODIVIDE 0x00000008 /* zero divide */ |
◆ _statusfp()
Definition at line 25 of file statfp.c.
26{
27 unsigned int retVal = 0;
28 unsigned short fpword;
29
30#ifdef _M_AMD64
32#elif defined(__GNUC__)
33 __asm__ __volatile__(
"fstsw %0" :
"=m" (fpword) : );
34#else
35 __asm fstsw [fpword];
36#endif
43 return retVal;
44}
__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")
unsigned int _mm_getcsr(void)
Referenced by _clearfp(), fpu_invalid_operation(), START_TEST(), and Test_exceptions().