Module Name: src
Committed By: matt
Date: Wed Jan 29 00:22:09 UTC 2014
Modified Files:
src/sys/arch/arm/include: fenv.h
Log Message:
Add AAPCS64 fenv_t
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/arm/include/fenv.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/include/fenv.h
diff -u src/sys/arch/arm/include/fenv.h:1.1 src/sys/arch/arm/include/fenv.h:1.2
--- src/sys/arch/arm/include/fenv.h:1.1 Tue Apr 23 05:41:12 2013
+++ src/sys/arch/arm/include/fenv.h Wed Jan 29 00:22:09 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.h,v 1.1 2013/04/23 05:41:12 matt Exp $ */
+/* $NetBSD: fenv.h,v 1.2 2014/01/29 00:22:09 matt Exp $ */
/*
* Based on ieeefp.h written by J.T. Conklin, Apr 28, 1995
@@ -8,7 +8,15 @@
#ifndef _ARM_FENV_H_
#define _ARM_FENV_H_
-typedef int fenv_t;
+#ifdef __ARM_PCS_AAPCS64
+/* AArch64 split FPSCR into two registers FPCR and FPSR */
+typedef struct {
+ unsigned int __fpcr;
+ unsigned int __fpsr;
+} fenv_t;
+#else
+typedef int fenv_t; /* FPSCR */
+#endif
typedef int fexcept_t;
#define FE_INVALID 0x01 /* invalid operation exception */