Back to index

glibc  2.9
feenablxcpt.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 feenableexcept (int excepts)

Function Documentation

int feenableexcept ( int  excepts)

Definition at line 30 of file feenablxcpt.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;