Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
openlibm_fenv_powerpc.h File Reference
#include <sys/types.h>

Go to the source code of this file.

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

Definition at line 35 of file openlibm_fenv_powerpc.h.

◆ __mffs

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

Definition at line 90 of file openlibm_fenv_powerpc.h.

◆ __mtfsf

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

Definition at line 91 of file openlibm_fenv_powerpc.h.

◆ _ENABLE_MASK

#define _ENABLE_MASK
Value:
#define _FPUSW_SHIFT
#define FE_UNDERFLOW
#define FE_INVALID
#define FE_INEXACT
#define FE_DIVBYZERO
#define FE_OVERFLOW

Definition at line 86 of file openlibm_fenv_powerpc.h.

◆ _FPUSW_SHIFT

#define _FPUSW_SHIFT   22

Definition at line 85 of file openlibm_fenv_powerpc.h.

◆ _ROUND_MASK

#define _ROUND_MASK
Value:
#define FE_UPWARD
#define FE_TONEAREST
#define FE_DOWNWARD
#define FE_TOWARDZERO

Definition at line 75 of file openlibm_fenv_powerpc.h.

◆ FE_ALL_EXCEPT

#define FE_ALL_EXCEPT
Value:

Definition at line 67 of file openlibm_fenv_powerpc.h.

◆ FE_ALL_INVALID

#define FE_ALL_INVALID
Value:
#define FE_VXIDI
#define FE_VXVC
#define FE_VXISI
#define FE_VXIMZ
#define FE_VXSOFT
#define FE_VXSQRT
#define FE_VXZDZ
#define FE_VXSNAN
#define FE_VXCVI

Definition at line 64 of file openlibm_fenv_powerpc.h.

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&__fe_dfl_env)

Definition at line 82 of file openlibm_fenv_powerpc.h.

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   0x04000000

Definition at line 43 of file openlibm_fenv_powerpc.h.

◆ FE_DOWNWARD

#define FE_DOWNWARD   0x0003

Definition at line 74 of file openlibm_fenv_powerpc.h.

◆ FE_INEXACT

#define FE_INEXACT   0x02000000

Definition at line 42 of file openlibm_fenv_powerpc.h.

◆ FE_INVALID

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

Definition at line 46 of file openlibm_fenv_powerpc.h.

◆ FE_OVERFLOW

#define FE_OVERFLOW   0x10000000

Definition at line 45 of file openlibm_fenv_powerpc.h.

◆ FE_TONEAREST

#define FE_TONEAREST   0x0000

Definition at line 71 of file openlibm_fenv_powerpc.h.

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   0x0001

Definition at line 72 of file openlibm_fenv_powerpc.h.

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   0x08000000

Definition at line 44 of file openlibm_fenv_powerpc.h.

◆ FE_UPWARD

#define FE_UPWARD   0x0002

Definition at line 73 of file openlibm_fenv_powerpc.h.

◆ FE_VXCVI

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

Definition at line 55 of file openlibm_fenv_powerpc.h.

◆ FE_VXIDI

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

Definition at line 61 of file openlibm_fenv_powerpc.h.

◆ FE_VXIMZ

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

Definition at line 59 of file openlibm_fenv_powerpc.h.

◆ FE_VXISI

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

Definition at line 62 of file openlibm_fenv_powerpc.h.

◆ FE_VXSNAN

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

Definition at line 63 of file openlibm_fenv_powerpc.h.

◆ FE_VXSOFT

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

Definition at line 57 of file openlibm_fenv_powerpc.h.

◆ FE_VXSQRT

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

Definition at line 56 of file openlibm_fenv_powerpc.h.

◆ FE_VXVC

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

Definition at line 58 of file openlibm_fenv_powerpc.h.

◆ FE_VXZDZ

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

Definition at line 60 of file openlibm_fenv_powerpc.h.

Typedef Documentation

◆ fenv_t

typedef __uint32_t fenv_t

Definition at line 38 of file openlibm_fenv_powerpc.h.

◆ fexcept_t

typedef __uint32_t fexcept_t

Definition at line 39 of file openlibm_fenv_powerpc.h.

Function Documentation

◆ feclearexcept()

__fenv_static int feclearexcept ( int  __excepts)
inline

Definition at line 111 of file openlibm_fenv_powerpc.h.

◆ fegetenv()

__fenv_static int fegetenv ( fenv_t __envp)
inline

Definition at line 193 of file openlibm_fenv_powerpc.h.

◆ fegetexceptflag()

__fenv_static int fegetexceptflag ( fexcept_t __flagp,
int  __excepts 
)
inline

Definition at line 124 of file openlibm_fenv_powerpc.h.

◆ fegetround()

__fenv_static int fegetround ( void  )
inline

Definition at line 170 of file openlibm_fenv_powerpc.h.

◆ feholdexcept()

__fenv_static int feholdexcept ( fenv_t __envp)
inline

Definition at line 203 of file openlibm_fenv_powerpc.h.

◆ feraiseexcept()

__fenv_static int feraiseexcept ( int  __excepts)
inline

Definition at line 148 of file openlibm_fenv_powerpc.h.

◆ fesetenv()

__fenv_static int fesetenv ( const fenv_t __envp)
inline

Definition at line 215 of file openlibm_fenv_powerpc.h.

◆ fesetexceptflag()

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

Definition at line 134 of file openlibm_fenv_powerpc.h.

◆ fesetround()

__fenv_static int fesetround ( int  __round)
inline

Definition at line 179 of file openlibm_fenv_powerpc.h.

◆ fetestexcept()

__fenv_static int fetestexcept ( int  __excepts)
inline

Definition at line 161 of file openlibm_fenv_powerpc.h.

◆ feupdateenv()

__fenv_static int feupdateenv ( const fenv_t __envp)
inline

Definition at line 225 of file openlibm_fenv_powerpc.h.

Variable Documentation

◆ __fe_dfl_env

__BEGIN_DECLS const fenv_t __fe_dfl_env
extern