Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
openlibm_fenv_arm.h File Reference
#include <stdint.h>
#include "../inc/cdefs-compat.h"

Go to the source code of this file.

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

Definition at line 37 of file openlibm_fenv_arm.h.

◆ __rfs

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

Definition at line 78 of file openlibm_fenv_arm.h.

◆ __wfs

#define __wfs (   __fpsr)

Definition at line 79 of file openlibm_fenv_arm.h.

◆ _ENABLE_MASK

#define _ENABLE_MASK   (FE_ALL_EXCEPT << _FPUSW_SHIFT)

Definition at line 67 of file openlibm_fenv_arm.h.

◆ _FPUSW_SHIFT

#define _FPUSW_SHIFT   16

Definition at line 66 of file openlibm_fenv_arm.h.

◆ _ROUND_MASK

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

Definition at line 57 of file openlibm_fenv_arm.h.

◆ FE_ALL_EXCEPT

#define FE_ALL_EXCEPT
Value:
#define FE_UNDERFLOW
#define FE_INVALID
#define FE_INEXACT
#define FE_DIVBYZERO
#define FE_OVERFLOW

Definition at line 49 of file openlibm_fenv_arm.h.

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&__fe_dfl_env)

Definition at line 63 of file openlibm_fenv_arm.h.

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   0x0002

Definition at line 45 of file openlibm_fenv_arm.h.

◆ FE_DOWNWARD

#define FE_DOWNWARD   0x0003

Definition at line 56 of file openlibm_fenv_arm.h.

◆ FE_INEXACT

#define FE_INEXACT   0x0010

Definition at line 48 of file openlibm_fenv_arm.h.

◆ FE_INVALID

#define FE_INVALID   0x0001

Definition at line 44 of file openlibm_fenv_arm.h.

◆ FE_OVERFLOW

#define FE_OVERFLOW   0x0004

Definition at line 46 of file openlibm_fenv_arm.h.

◆ FE_TONEAREST

#define FE_TONEAREST   0x0000

Definition at line 53 of file openlibm_fenv_arm.h.

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   0x0001

Definition at line 54 of file openlibm_fenv_arm.h.

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   0x0008

Definition at line 47 of file openlibm_fenv_arm.h.

◆ FE_UPWARD

#define FE_UPWARD   0x0002

Definition at line 55 of file openlibm_fenv_arm.h.

Typedef Documentation

◆ fenv_t

typedef uint32_t fenv_t

Definition at line 40 of file openlibm_fenv_arm.h.

◆ fexcept_t

Definition at line 41 of file openlibm_fenv_arm.h.

Function Documentation

◆ feclearexcept()

__fenv_static int feclearexcept ( int  __excepts)
inline

Definition at line 83 of file openlibm_fenv_arm.h.

◆ fegetenv()

__fenv_static int fegetenv ( fenv_t __envp)
inline

Definition at line 153 of file openlibm_fenv_arm.h.

◆ fegetexceptflag()

__fenv_static int fegetexceptflag ( fexcept_t __flagp,
int  __excepts 
)
inline

Definition at line 94 of file openlibm_fenv_arm.h.

◆ fegetround()

__fenv_static int fegetround ( void  )
inline

Definition at line 134 of file openlibm_fenv_arm.h.

◆ feholdexcept()

__fenv_static int feholdexcept ( fenv_t __envp)
inline

Definition at line 161 of file openlibm_fenv_arm.h.

◆ feraiseexcept()

__fenv_static int feraiseexcept ( int  __excepts)
inline

Definition at line 116 of file openlibm_fenv_arm.h.

◆ fesetenv()

__fenv_static int fesetenv ( const fenv_t __envp)
inline

Definition at line 173 of file openlibm_fenv_arm.h.

◆ fesetexceptflag()

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

Definition at line 104 of file openlibm_fenv_arm.h.

◆ fesetround()

__fenv_static int fesetround ( int  __round)
inline

Definition at line 146 of file openlibm_fenv_arm.h.

◆ fetestexcept()

__fenv_static int fetestexcept ( int  __excepts)
inline

Definition at line 125 of file openlibm_fenv_arm.h.

◆ feupdateenv()

__fenv_static int feupdateenv ( const fenv_t __envp)
inline

Definition at line 181 of file openlibm_fenv_arm.h.

Variable Documentation

◆ __fe_dfl_env

__BEGIN_DECLS const fenv_t __fe_dfl_env
extern