mirror of
https://github.com/astromaddie/HaloCE-VR.git
synced 2026-10-20 12:00:11 +02:00
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/*
|
|
FLOAT.H
|
|
|
|
Host <float.h> plus the MSVC x87 control-word interface.
|
|
*/
|
|
|
|
#ifndef __HALO_LINUX_FLOAT_H
|
|
#define __HALO_LINUX_FLOAT_H
|
|
|
|
#include_next <float.h>
|
|
|
|
#define _MCW_EM 0x0008001f
|
|
#define _MCW_IC 0x00040000
|
|
#define _MCW_RC 0x00000300
|
|
#define _MCW_PC 0x00030000
|
|
|
|
#define _EM_INEXACT 0x00000001
|
|
#define _EM_UNDERFLOW 0x00000002
|
|
#define _EM_OVERFLOW 0x00000004
|
|
#define _EM_ZERODIVIDE 0x00000008
|
|
#define _EM_INVALID 0x00000010
|
|
#define _EM_DENORMAL 0x00080000
|
|
|
|
#define _RC_NEAR 0x00000000
|
|
#define _RC_DOWN 0x00000100
|
|
#define _RC_UP 0x00000200
|
|
#define _RC_CHOP 0x00000300
|
|
|
|
#define _PC_24 0x00020000
|
|
#define _PC_53 0x00010000
|
|
#define _PC_64 0x00000000
|
|
|
|
#define _IC_AFFINE 0x00040000
|
|
#define _IC_PROJECTIVE 0x00000000
|
|
|
|
#define CW_DEFAULT (_RC_NEAR + _PC_53 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL)
|
|
|
|
unsigned int _control87(unsigned int new_value, unsigned int mask);
|
|
unsigned int _controlfp(unsigned int new_value, unsigned int mask);
|
|
unsigned int _clearfp(void);
|
|
unsigned int _statusfp(void);
|
|
int _isnan(double value);
|
|
int _finite(double value);
|
|
|
|
#endif
|