Skip to content

Commit

Permalink
[AArch64] Cleanup declarations in math_private.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilco authored and Marcus Shawcroft committed Jun 3, 2014
1 parent 8747cd0 commit 0b4366b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2014-06-03 Wilco <wdijkstr@arm.com>

* sysdeps/aarch64/fpu/math_private.h
(libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
(libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
(libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
(libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
Fix declarations.

2014-06-03 Kostya Serebryany <konstantin.s.serebryany@gmail.com>

* crypt/crypt-private.h: Include ufc-crypt.h.
Expand Down
30 changes: 22 additions & 8 deletions sysdeps/aarch64/fpu/math_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
static __always_inline void
libc_feholdexcept_aarch64 (fenv_t *envp)
{
fpu_control_t fpcr, new_fpcr, fpsr, new_fpsr;
fpu_control_t fpcr;
fpu_control_t new_fpcr;
fpu_fpsr_t fpsr;
fpu_fpsr_t new_fpsr;

_FPU_GETCW (fpcr);
_FPU_GETFPSR (fpsr);
Expand Down Expand Up @@ -69,7 +72,10 @@ libc_fesetround_aarch64 (int round)
static __always_inline void
libc_feholdexcept_setround_aarch64 (fenv_t *envp, int round)
{
fpu_control_t fpcr, new_fpcr, fpsr, new_fpsr;
fpu_control_t fpcr;
fpu_control_t new_fpcr;
fpu_fpsr_t fpsr;
fpu_fpsr_t new_fpsr;

_FPU_GETCW (fpcr);
_FPU_GETFPSR (fpsr);
Expand All @@ -96,7 +102,7 @@ libc_feholdexcept_setround_aarch64 (fenv_t *envp, int round)
static __always_inline int
libc_fetestexcept_aarch64 (int ex)
{
fpu_control_t fpsr;
fpu_fpsr_t fpsr;

_FPU_GETFPSR (fpsr);
return fpsr & ex & FE_ALL_EXCEPT;
Expand All @@ -109,7 +115,8 @@ libc_fetestexcept_aarch64 (int ex)
static __always_inline void
libc_fesetenv_aarch64 (const fenv_t *envp)
{
fpu_control_t fpcr, new_fpcr;
fpu_control_t fpcr;
fpu_control_t new_fpcr;

_FPU_GETCW (fpcr);
new_fpcr = envp->__fpcr;
Expand All @@ -130,7 +137,10 @@ libc_fesetenv_aarch64 (const fenv_t *envp)
static __always_inline int
libc_feupdateenv_test_aarch64 (const fenv_t *envp, int ex)
{
fpu_control_t fpcr, new_fpcr, fpsr, new_fpsr;
fpu_control_t fpcr;
fpu_control_t new_fpcr;
fpu_fpsr_t fpsr;
fpu_fpsr_t new_fpsr;
int excepts;

_FPU_GETCW (fpcr);
Expand Down Expand Up @@ -171,7 +181,8 @@ libc_feupdateenv_aarch64 (const fenv_t *envp)
static __always_inline void
libc_feholdsetround_aarch64 (fenv_t *envp, int round)
{
fpu_control_t fpcr, fpsr;
fpu_control_t fpcr;
fpu_fpsr_t fpsr;

_FPU_GETCW (fpcr);
_FPU_GETFPSR (fpsr);
Expand All @@ -193,7 +204,8 @@ libc_feholdsetround_aarch64 (fenv_t *envp, int round)
static __always_inline void
libc_feresetround_aarch64 (fenv_t *envp)
{
fpu_control_t fpcr, round;
fpu_control_t fpcr;
int round;

_FPU_GETCW (fpcr);

Expand All @@ -215,7 +227,9 @@ libc_feresetround_aarch64 (fenv_t *envp)
static __always_inline void
libc_feholdsetround_aarch64_ctx (struct rm_ctx *ctx, int r)
{
fpu_control_t fpcr, fpsr, round;
fpu_control_t fpcr;
fpu_fpsr_t fpsr;
int round;

_FPU_GETCW (fpcr);
_FPU_GETFPSR (fpsr);
Expand Down

0 comments on commit 0b4366b

Please sign in to comment.