Back to index

glibc  2.9
fedisblxcpt.c File Reference
#include <fenv.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.


int fedisableexcept (int excepts)

Function Documentation

int fedisableexcept ( int  excepts)

Definition at line 30 of file fedisblxcpt.c.

  if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
      unsigned long int new_exc, old_exc;


      old_exc = (new_exc >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT;

      excepts &= FE_ALL_EXCEPT;

      new_exc &= ~(excepts << FE_EXCEPT_SHIFT);


      return old_exc;

  /* Unsupported, so return -1 for failure.  */
  return -1;