summaryrefslogtreecommitdiff
path: root/Linux/arm/include/fpuctl.h
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
committerCharles.Forsyth <devnull@localhost>2006-12-23 00:30:12 +0000
commit6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch)
tree314123bcab78ff295f38f85f31dc141e5fe22d15 /Linux/arm/include/fpuctl.h
parent74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff)
20061220
Diffstat (limited to 'Linux/arm/include/fpuctl.h')
-rw-r--r--Linux/arm/include/fpuctl.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/Linux/arm/include/fpuctl.h b/Linux/arm/include/fpuctl.h
new file mode 100644
index 00000000..7903c04b
--- /dev/null
+++ b/Linux/arm/include/fpuctl.h
@@ -0,0 +1,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