Dataflow Runtime API  4.0.1.0
Macros | Typedefs | Functions | Variables
openlibm_fenv_s390.h File Reference
#include <sys/types.h>

Macros

#define __fenv_static   static
 
#define FE_INEXACT   0x080000
 
#define FE_UNDERFLOW   0x100000
 
#define FE_OVERFLOW   0x200000
 
#define FE_DIVBYZERO   0x400000
 
#define FE_INVALID   0x800000 /* all types of invalid FP ops */
 
#define FE_ALL_EXCEPT   (FE_INVALID | FE_DIVBYZERO | FE_INEXACT | FE_OVERFLOW | FE_UNDERFLOW)
 
#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 _FPC_EXC_MASK_SHIFT   8
 
#define _ENABLE_MASK
 
#define _FPU_GETCW(cw)   __asm__ __volatile__ ("efpc %0,0" : "=d" (cw))
 
#define _FPU_SETCW(cw)   __asm__ __volatile__ ("sfpc %0,0" : : "d" (cw))
 

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

◆ _ENABLE_MASK

#define _ENABLE_MASK
Value:
FE_OVERFLOW | FE_UNDERFLOW) << _FPC_EXC_MASK_SHIFT)
#define FE_UNDERFLOW
Definition: openlibm_fenv_s390.h:43
#define FE_INVALID
Definition: openlibm_fenv_s390.h:46
#define FE_INEXACT
Definition: openlibm_fenv_s390.h:42
#define FE_DIVBYZERO
Definition: openlibm_fenv_s390.h:45
#define _FPC_EXC_MASK_SHIFT
Definition: openlibm_fenv_s390.h:65

◆ _FPC_EXC_MASK_SHIFT

#define _FPC_EXC_MASK_SHIFT   8

◆ _FPU_GETCW

#define _FPU_GETCW (   cw)    __asm__ __volatile__ ("efpc %0,0" : "=d" (cw))

◆ _FPU_SETCW

#define _FPU_SETCW (   cw)    __asm__ __volatile__ ("sfpc %0,0" : : "d" (cw))

◆ _ROUND_MASK

#define _ROUND_MASK
Value:
FE_UPWARD | FE_TOWARDZERO)
#define FE_TONEAREST
Definition: openlibm_fenv_s390.h:51
#define FE_DOWNWARD
Definition: openlibm_fenv_s390.h:54
#define FE_TOWARDZERO
Definition: openlibm_fenv_s390.h:52

◆ FE_ALL_EXCEPT

#define FE_ALL_EXCEPT   (FE_INVALID | FE_DIVBYZERO | FE_INEXACT | FE_OVERFLOW | FE_UNDERFLOW)

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&__fe_dfl_env)

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   0x400000

◆ FE_DOWNWARD

#define FE_DOWNWARD   0x0003

◆ FE_INEXACT

#define FE_INEXACT   0x080000

◆ FE_INVALID

#define FE_INVALID   0x800000 /* all types of invalid FP ops */

◆ FE_OVERFLOW

#define FE_OVERFLOW   0x200000

◆ FE_TONEAREST

#define FE_TONEAREST   0x0000

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   0x0001

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   0x100000

◆ FE_UPWARD

#define FE_UPWARD   0x0002

Typedef Documentation

◆ fenv_t

typedef __uint32_t fenv_t

◆ fexcept_t

typedef __uint32_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