Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include Add AAPCS64 fenv_t



details:   https://anonhg.NetBSD.org/src/rev/338684070f5b
branches:  trunk
changeset: 326421:338684070f5b
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jan 29 00:22:09 2014 +0000

description:
Add AAPCS64 fenv_t

diffstat:

 sys/arch/arm/include/fenv.h |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r cc51cfc8e656 -r 338684070f5b sys/arch/arm/include/fenv.h
--- a/sys/arch/arm/include/fenv.h       Wed Jan 29 00:20:54 2014 +0000
+++ b/sys/arch/arm/include/fenv.h       Wed Jan 29 00:22:09 2014 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index