summaryrefslogtreecommitdiff
path: root/Linux/arm/include/fpuctl.h
blob: 7903c04b4d646119f166fc167c3d312a800b4424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Linux arm fpu support
 * Mimic Plan9 floating point support
 */

#include <fenv.h>

static void
setfcr(ulong fcr)
{
}

static ulong
getfcr(void)
{
	ulong fcr = 0;
	return fcr; 
}

static ulong
getfsr(void)
{
	ulong fsr = -1;
	return fsr;
}

static void
setfsr(ulong fsr)
{
}

/* FCR */
#define	FPINEX	(1<<5)
#define	FPUNFL	((1<<4)|(1<<1))
#define	FPOVFL	(1<<3)
#define	FPZDIV	(1<<2)
#define	FPINVAL	(1<<0)
#define	FPRNR	(0<<10)
#define	FPRZ	(3<<10)
#define	FPRPINF	(2<<10)
#define	FPRNINF	(1<<10)
#define	FPRMASK	(3<<10)
#define	FPPEXT	(3<<8)
#define	FPPSGL	(0<<8)
#define	FPPDBL	(2<<8)
#define	FPPMASK	(3<<8)
/* FSR */
#define	FPAINEX	FPINEX
#define	FPAOVFL	FPOVFL
#define	FPAUNFL	FPUNFL
#define	FPAZDIV	FPZDIV
#define	FPAINVAL	FPINVAL