Back to index

glibc  2.9
setfpucw.c File Reference
#include <math.h>
#include <fpu_control.h>
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
#include <sysdep.h>

Go to the source code of this file.


void __setfpucw (fpu_control_t set)

Function Documentation

void __setfpucw ( fpu_control_t  set)

Definition at line 29 of file setfpucw.c.

  if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
      fpu_control_t cw;

      /* Fetch the current control word.  */
      _FPU_GETCW (cw);

      /* Preserve the reserved bits, and set the rest as the user
        specified (or the default, if the user gave zero).  */
      cw &= _FPU_RESERVED;
      cw |= set & ~_FPU_RESERVED;

      _FPU_SETCW (cw);

  /* Do nothing if a VFP unit isn't present.  */