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

Classes

union  __fpscr
 

Macros

#define __fenv_static   static
 
#define FE_INEXACT   0x02000000
 
#define FE_DIVBYZERO   0x04000000
 
#define FE_UNDERFLOW   0x08000000
 
#define FE_OVERFLOW   0x10000000
 
#define FE_INVALID   0x20000000 /* all types of invalid FP ops */
 
#define FE_VXCVI   0x00000100 /* invalid integer convert */
 
#define FE_VXSQRT   0x00000200 /* square root of a negative */
 
#define FE_VXSOFT   0x00000400 /* software-requested exception */
 
#define FE_VXVC   0x00080000 /* ordered comparison involving NaN */
 
#define FE_VXIMZ   0x00100000 /* inf * 0 */
 
#define FE_VXZDZ   0x00200000 /* 0 / 0 */
 
#define FE_VXIDI   0x00400000 /* inf / inf */
 
#define FE_VXISI   0x00800000 /* inf - inf */
 
#define FE_VXSNAN   0x01000000 /* operation on a signalling NaN */
 
#define FE_ALL_INVALID
 
#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   22
 
#define _ENABLE_MASK
 
#define __mffs(__env)   __asm __volatile("mffs %0" : "=f" (*(__env)))
 
#define __mtfsf(__env)   __asm __volatile("mtfsf 255,%0" : : "f" (__env))
 

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

◆ __mffs

#define __mffs (   __env)    __asm __volatile("mffs %0" : "=f" (*(__env)))

◆ __mtfsf

#define __mtfsf (   __env)    __asm __volatile("mtfsf 255,%0" : : "f" (__env))

◆ _ENABLE_MASK

#define _ENABLE_MASK
Value:
FE_OVERFLOW | FE_UNDERFLOW) >> _FPUSW_SHIFT)
#define _FPUSW_SHIFT
Definition: openlibm_fenv_powerpc.h:85
#define FE_UNDERFLOW
Definition: openlibm_fenv_powerpc.h:44
#define FE_INVALID
Definition: openlibm_fenv_powerpc.h:46
#define FE_INEXACT
Definition: openlibm_fenv_powerpc.h:42
#define FE_DIVBYZERO
Definition: openlibm_fenv_powerpc.h:43

◆ _FPUSW_SHIFT

#define _FPUSW_SHIFT   22

◆ _ROUND_MASK

#define _ROUND_MASK
Value:
FE_UPWARD | FE_TOWARDZERO)
#define FE_TONEAREST
Definition: openlibm_fenv_powerpc.h:71
#define FE_DOWNWARD
Definition: openlibm_fenv_powerpc.h:74
#define FE_TOWARDZERO
Definition: openlibm_fenv_powerpc.h:72

◆ FE_ALL_EXCEPT

#define FE_ALL_EXCEPT
Value:
FE_ALL_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
#define FE_OVERFLOW
Definition: openlibm_fenv_powerpc.h:45

◆ FE_ALL_INVALID

#define FE_ALL_INVALID
Value:
FE_VXIMZ | FE_VXZDZ | FE_VXIDI | FE_VXISI | \
FE_VXSNAN | FE_INVALID)
#define FE_VXIDI
Definition: openlibm_fenv_powerpc.h:61
#define FE_VXVC
Definition: openlibm_fenv_powerpc.h:58
#define FE_VXISI
Definition: openlibm_fenv_powerpc.h:62
#define FE_VXSOFT
Definition: openlibm_fenv_powerpc.h:57
#define FE_VXSQRT
Definition: openlibm_fenv_powerpc.h:56
#define FE_VXZDZ
Definition: openlibm_fenv_powerpc.h:60
#define FE_VXCVI
Definition: openlibm_fenv_powerpc.h:55

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&__fe_dfl_env)

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   0x04000000

◆ FE_DOWNWARD

#define FE_DOWNWARD   0x0003

◆ FE_INEXACT

#define FE_INEXACT   0x02000000

◆ FE_INVALID

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

◆ FE_OVERFLOW

#define FE_OVERFLOW   0x10000000

◆ FE_TONEAREST

#define FE_TONEAREST   0x0000

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   0x0001

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   0x08000000

◆ FE_UPWARD

#define FE_UPWARD   0x0002

◆ FE_VXCVI

#define FE_VXCVI   0x00000100 /* invalid integer convert */

◆ FE_VXIDI

#define FE_VXIDI   0x00400000 /* inf / inf */

◆ FE_VXIMZ

#define FE_VXIMZ   0x00100000 /* inf * 0 */

◆ FE_VXISI

#define FE_VXISI   0x00800000 /* inf - inf */

◆ FE_VXSNAN

#define FE_VXSNAN   0x01000000 /* operation on a signalling NaN */

◆ FE_VXSOFT

#define FE_VXSOFT   0x00000400 /* software-requested exception */

◆ FE_VXSQRT

#define FE_VXSQRT   0x00000200 /* square root of a negative */

◆ FE_VXVC

#define FE_VXVC   0x00080000 /* ordered comparison involving NaN */

◆ FE_VXZDZ

#define FE_VXZDZ   0x00200000 /* 0 / 0 */

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