msvcrt: Implement _statusfp for arm.
Signed-off-by: Martin Storsjö <martin@martin.st> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
39f2398913
commit
70400c9368
|
@ -5203,6 +5203,16 @@ unsigned int CDECL _statusfp(void)
|
|||
if (fpsr & 0x8) flags |= _SW_UNDERFLOW;
|
||||
if (fpsr & 0x10) flags |= _SW_INEXACT;
|
||||
if (fpsr & 0x80) flags |= _SW_DENORMAL;
|
||||
#elif defined(__arm__) && !defined(__SOFTFP__)
|
||||
DWORD fpscr;
|
||||
|
||||
__asm__ __volatile__( "vmrs %0, fpscr" : "=r" (fpscr) );
|
||||
if (fpscr & 0x1) flags |= _SW_INVALID;
|
||||
if (fpscr & 0x2) flags |= _SW_ZERODIVIDE;
|
||||
if (fpscr & 0x4) flags |= _SW_OVERFLOW;
|
||||
if (fpscr & 0x8) flags |= _SW_UNDERFLOW;
|
||||
if (fpscr & 0x10) flags |= _SW_INEXACT;
|
||||
if (fpscr & 0x80) flags |= _SW_DENORMAL;
|
||||
#else
|
||||
FIXME( "not implemented\n" );
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue