1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Revert "ARM: Improve fenv implementation"

This reverts commit c0c08d02c8.
This commit is contained in:
Marcus Shawcroft
2014-05-19 09:08:59 +01:00
parent 834caf06f3
commit 18f8524d2c
13 changed files with 101 additions and 95 deletions

View File

@ -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);
}