0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef _CONTROLW_H_
0012 #define _CONTROLW_H_
0013
0014 #ifdef __ASSEMBLY__
0015 #define _Const_(x) $##x
0016 #else
0017 #define _Const_(x) x
0018 #endif
0019
0020 #define CW_RC _Const_(0x0C00)
0021 #define CW_PC _Const_(0x0300)
0022
0023 #define CW_Precision Const_(0x0020)
0024 #define CW_Underflow Const_(0x0010)
0025 #define CW_Overflow Const_(0x0008)
0026 #define CW_ZeroDiv Const_(0x0004)
0027 #define CW_Denormal Const_(0x0002)
0028 #define CW_Invalid Const_(0x0001)
0029
0030 #define CW_Exceptions _Const_(0x003f)
0031
0032 #define RC_RND _Const_(0x0000)
0033 #define RC_DOWN _Const_(0x0400)
0034 #define RC_UP _Const_(0x0800)
0035 #define RC_CHOP _Const_(0x0C00)
0036
0037
0038
0039 #define PR_24_BITS _Const_(0x000)
0040 #define PR_53_BITS _Const_(0x200)
0041 #define PR_64_BITS _Const_(0x300)
0042 #define PR_RESERVED_BITS _Const_(0x100)
0043
0044 #define FULL_PRECISION (PR_64_BITS | RC_RND | 0x3f)
0045
0046 #endif