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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user