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