diff options
Diffstat (limited to 'sysdeps/arm/setfpucw.c')
-rw-r--r-- | sysdeps/arm/setfpucw.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sysdeps/arm/setfpucw.c b/sysdeps/arm/setfpucw.c index 259b020f81..7416377f9e 100644 --- a/sysdeps/arm/setfpucw.c +++ b/sysdeps/arm/setfpucw.c @@ -24,20 +24,19 @@ void __setfpucw (fpu_control_t set) { - fpu_control_t fpscr, new_fpscr; + fpu_control_t fpscr; /* Do nothing if a VFP unit isn't present. */ if (!ARM_HAVE_VFP) return; + /* Fetch the current control word. */ _FPU_GETCW (fpscr); /* Preserve the reserved bits, and set the rest as the user specified (or the default, if the user gave zero). */ - new_fpscr = fpscr & _FPU_RESERVED; - new_fpscr |= set & ~_FPU_RESERVED; + fpscr &= _FPU_RESERVED; + fpscr |= set & ~_FPU_RESERVED; - /* Write FPSCR if changed. */ - if (new_fpscr != fpscr) - _FPU_SETCW (fpscr); + _FPU_SETCW (fpscr); } |