Dataflow Runtime API  4.0.1.0
Macros | Typedefs | Functions | Variables
openlibm_fenv_arm.h File Reference
#include <stdint.h>
#include "../inc/cdefs-compat.h"

Macros

#define __fenv_static   static
 
#define FE_INVALID   0x0001
 
#define FE_DIVBYZERO   0x0002
 
#define FE_OVERFLOW   0x0004
 
#define FE_UNDERFLOW   0x0008
 
#define FE_INEXACT   0x0010
 
#define FE_ALL_EXCEPT
 
#define FE_TONEAREST   0x0000
 
#define FE_TOWARDZERO   0x0001
 
#define FE_UPWARD   0x0002
 
#define FE_DOWNWARD   0x0003
 
#define _ROUND_MASK
 
#define FE_DFL_ENV   (&__fe_dfl_env)
 
#define _FPUSW_SHIFT   16
 
#define _ENABLE_MASK   (FE_ALL_EXCEPT << _FPUSW_SHIFT)
 
#define __rfs(__fpsr)   (*(__fpsr) = 0)
 
#define __wfs(__fpsr)
 

Typedefs

typedef uint32_t fenv_t
 
typedef uint32_t fexcept_t
 

Functions

__fenv_static int feclearexcept (int __excepts)
 
__fenv_static int fegetexceptflag (fexcept_t *__flagp, int __excepts)
 
__fenv_static int fesetexceptflag (const fexcept_t *__flagp, int __excepts)
 
__fenv_static int feraiseexcept (int __excepts)
 
__fenv_static int fetestexcept (int __excepts)
 
__fenv_static int fegetround (void)
 
__fenv_static int fesetround (int __round)
 
__fenv_static int fegetenv (fenv_t *__envp)
 
__fenv_static int feholdexcept (fenv_t *__envp)
 
__fenv_static int fesetenv (const fenv_t *__envp)
 
__fenv_static int feupdateenv (const fenv_t *__envp)
 

Variables

__BEGIN_DECLS const fenv_t __fe_dfl_env
 

Macro Definition Documentation

◆ __fenv_static

#define __fenv_static   static

◆ __rfs

#define __rfs (   __fpsr)    (*(__fpsr) = 0)

◆ __wfs

#define __wfs (   __fpsr)

◆ _ENABLE_MASK

#define _ENABLE_MASK   (FE_ALL_EXCEPT << _FPUSW_SHIFT)

◆ _FPUSW_SHIFT

#define _FPUSW_SHIFT   16

◆ _ROUND_MASK

#define _ROUND_MASK
Value:
FE_UPWARD | FE_TOWARDZERO)
#define FE_TONEAREST
Definition: openlibm_fenv_arm.h:53
#define FE_DOWNWARD
Definition: openlibm_fenv_arm.h:56
#define FE_TOWARDZERO
Definition: openlibm_fenv_arm.h:54

◆ FE_ALL_EXCEPT

#define FE_ALL_EXCEPT
Value:
FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
#define FE_UNDERFLOW
Definition: openlibm_fenv_arm.h:47
#define FE_INEXACT
Definition: openlibm_fenv_arm.h:48
#define FE_DIVBYZERO
Definition: openlibm_fenv_arm.h:45
#define FE_OVERFLOW
Definition: openlibm_fenv_arm.h:46

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&__fe_dfl_env)

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   0x0002

◆ FE_DOWNWARD

#define FE_DOWNWARD   0x0003

◆ FE_INEXACT

#define FE_INEXACT   0x0010

◆ FE_INVALID

#define FE_INVALID   0x0001

◆ FE_OVERFLOW

#define FE_OVERFLOW   0x0004

◆ FE_TONEAREST

#define FE_TONEAREST   0x0000

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   0x0001

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   0x0008

◆ FE_UPWARD

#define FE_UPWARD   0x0002

Typedef Documentation

◆ fenv_t

typedef uint32_t fenv_t

◆ fexcept_t

Function Documentation

◆ feclearexcept()

__fenv_static int feclearexcept ( int  __excepts)
inline

◆ fegetenv()

__fenv_static int fegetenv ( fenv_t __envp)
inline

◆ fegetexceptflag()

__fenv_static int fegetexceptflag ( fexcept_t __flagp,
int  __excepts 
)
inline

◆ fegetround()

__fenv_static int fegetround ( void  )
inline

◆ feholdexcept()

__fenv_static int feholdexcept ( fenv_t __envp)
inline

◆ feraiseexcept()

__fenv_static int feraiseexcept ( int  __excepts)
inline

◆ fesetenv()

__fenv_static int fesetenv ( const fenv_t __envp)
inline

◆ fesetexceptflag()

__fenv_static int fesetexceptflag ( const fexcept_t __flagp,
int  __excepts 
)
inline

◆ fesetround()

__fenv_static int fesetround ( int  __round)
inline

◆ fetestexcept()

__fenv_static int fetestexcept ( int  __excepts)
inline

◆ feupdateenv()

__fenv_static int feupdateenv ( const fenv_t __envp)
inline

Variable Documentation

◆ __fe_dfl_env

__BEGIN_DECLS const fenv_t __fe_dfl_env
extern