bca718
commit 0b4366bc9bca9be8a2208455545c138bcd1e826c
bca718
Author: Wilco <wdijkstr@arm.com>
bca718
Date:   Tue Jun 3 08:08:36 2014 +0000
bca718
bca718
    [AArch64] Cleanup declarations in math_private.h.
bca718
bca718
diff --git a/ports/sysdeps/aarch64/fpu/math_private.h b/ports/sysdeps/aarch64/fpu/math_private.h
bca718
index 7424952..a3f466b 100644
bca718
--- a/ports/sysdeps/aarch64/fpu/math_private.h
bca718
+++ b/ports/sysdeps/aarch64/fpu/math_private.h
bca718
@@ -25,7 +25,10 @@
bca718
 static __always_inline void
bca718
 libc_feholdexcept_aarch64 (fenv_t *envp)
bca718
 {
bca718
-  fpu_control_t fpcr, new_fpcr, fpsr, new_fpsr;
bca718
+  fpu_control_t fpcr;
bca718
+  fpu_control_t new_fpcr;
bca718
+  fpu_fpsr_t fpsr;
bca718
+  fpu_fpsr_t new_fpsr;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
   _FPU_GETFPSR (fpsr);
bca718
@@ -69,7 +72,10 @@ libc_fesetround_aarch64 (int round)
bca718
 static __always_inline void
bca718
 libc_feholdexcept_setround_aarch64 (fenv_t *envp, int round)
bca718
 {
bca718
-  fpu_control_t fpcr, new_fpcr, fpsr, new_fpsr;
bca718
+  fpu_control_t fpcr;
bca718
+  fpu_control_t new_fpcr;
bca718
+  fpu_fpsr_t fpsr;
bca718
+  fpu_fpsr_t new_fpsr;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
   _FPU_GETFPSR (fpsr);
bca718
@@ -96,7 +102,7 @@ libc_feholdexcept_setround_aarch64 (fenv_t *envp, int round)
bca718
 static __always_inline int
bca718
 libc_fetestexcept_aarch64 (int ex)
bca718
 {
bca718
-  fpu_control_t fpsr;
bca718
+  fpu_fpsr_t fpsr;
bca718
 
bca718
   _FPU_GETFPSR (fpsr);
bca718
   return fpsr & ex & FE_ALL_EXCEPT;
bca718
@@ -109,7 +115,8 @@ libc_fetestexcept_aarch64 (int ex)
bca718
 static __always_inline void
bca718
 libc_fesetenv_aarch64 (const fenv_t *envp)
bca718
 {
bca718
-  fpu_control_t fpcr, new_fpcr;
bca718
+  fpu_control_t fpcr;
bca718
+  fpu_control_t new_fpcr;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
   new_fpcr = envp->__fpcr;
bca718
@@ -130,7 +137,10 @@ libc_fesetenv_aarch64 (const fenv_t *envp)
bca718
 static __always_inline int
bca718
 libc_feupdateenv_test_aarch64 (const fenv_t *envp, int ex)
bca718
 {
bca718
-  fpu_control_t fpcr, new_fpcr, fpsr, new_fpsr;
bca718
+  fpu_control_t fpcr;
bca718
+  fpu_control_t new_fpcr;
bca718
+  fpu_fpsr_t fpsr;
bca718
+  fpu_fpsr_t new_fpsr;
bca718
   int excepts;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
@@ -171,7 +181,8 @@ libc_feupdateenv_aarch64 (const fenv_t *envp)
bca718
 static __always_inline void
bca718
 libc_feholdsetround_aarch64 (fenv_t *envp, int round)
bca718
 {
bca718
-  fpu_control_t fpcr, fpsr;
bca718
+  fpu_control_t fpcr;
bca718
+  fpu_fpsr_t fpsr;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
   _FPU_GETFPSR (fpsr);
bca718
@@ -193,7 +204,8 @@ libc_feholdsetround_aarch64 (fenv_t *envp, int round)
bca718
 static __always_inline void
bca718
 libc_feresetround_aarch64 (fenv_t *envp)
bca718
 {
bca718
-  fpu_control_t fpcr, round;
bca718
+  fpu_control_t fpcr;
bca718
+  int round;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
 
bca718
@@ -215,7 +227,9 @@ libc_feresetround_aarch64 (fenv_t *envp)
bca718
 static __always_inline void
bca718
 libc_feholdsetround_aarch64_ctx (struct rm_ctx *ctx, int r)
bca718
 {
bca718
-  fpu_control_t fpcr, fpsr, round;
bca718
+  fpu_control_t fpcr;
bca718
+  fpu_fpsr_t fpsr;
bca718
+  int round;
bca718
 
bca718
   _FPU_GETCW (fpcr);
bca718
   _FPU_GETFPSR (fpsr);