1
2
3
4
5
6
7
8
9
10 #define FPSCR s31
11
12
13 #define FPSCR_DEFAULT_NAN (1<<25)
14
15 #define FPSCR_CMPINSTR_BIT (1<<31)
16
17 #define FPSCR_CON (1<<29)
18 #define FPSCR_TRAP (1<<27)
19
20
21 #define FPSCR_ROUND_NEAREST (0<<0)
22 #define FPSCR_ROUND_PLUSINF (2<<0)
23 #define FPSCR_ROUND_MINUSINF (3<<0)
24 #define FPSCR_ROUND_TOZERO (1<<0)
25 #define FPSCR_RMODE_BIT (0)
26 #define FPSCR_RMODE_MASK (7 << FPSCR_RMODE_BIT)
27
28
29 #define FPSCR_IOE (1<<16)
30 #define FPSCR_OFE (1<<14)
31 #define FPSCR_UFE (1<<13)
32 #define FPSCR_IXE (1<<12)
33 #define FPSCR_HIE (1<<11)
34 #define FPSCR_NDE (1<<10)
35
36
37 #define FPSCR_IDC (1<<24)
38 #define FPSCR_HIC (1<<23)
39 #define FPSCR_IXC (1<<22)
40 #define FPSCR_OFC (1<<21)
41 #define FPSCR_UFC (1<<20)
42 #define FPSCR_IOC (1<<19)
43
44
45 #define FPSCR_IOS (1<<9)
46 #define FPSCR_OFS (1<<7)
47 #define FPSCR_UFS (1<<6)
48 #define FPSCR_IXS (1<<5)
49 #define FPSCR_HIS (1<<4)
50 #define FPSCR_NDS (1<<3)