Imt.Base C++ API V4.1.1.0
Loading...
Searching...
No Matches
openlibm_fenv_mips.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 _FCSR_CAUSE_SHIFT   10
 
#define FE_INVALID   0x0040
 
#define FE_DIVBYZERO   0x0020
 
#define FE_OVERFLOW   0x0010
 
#define FE_UNDERFLOW   0x0008
 
#define FE_INEXACT   0x0004
 
#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 _ENABLE_SHIFT   5
 
#define _ENABLE_MASK   (FE_ALL_EXCEPT << _ENABLE_SHIFT)
 
#define __cfc1(__fcsr)   __asm __volatile("cfc1 %0, $31" : "=r" (__fcsr))
 
#define __ctc1(__fcsr)   __asm __volatile("ctc1 %0, $31" :: "r" (__fcsr))
 

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

◆ __cfc1

#define __cfc1 (   __fcsr)    __asm __volatile("cfc1 %0, $31" : "=r" (__fcsr))

Definition at line 79 of file openlibm_fenv_mips.h.

◆ __ctc1

#define __ctc1 (   __fcsr)    __asm __volatile("ctc1 %0, $31" :: "r" (__fcsr))

Definition at line 80 of file openlibm_fenv_mips.h.

◆ __fenv_static

#define __fenv_static   static

Definition at line 36 of file openlibm_fenv_mips.h.

◆ _ENABLE_MASK

#define _ENABLE_MASK   (FE_ALL_EXCEPT << _ENABLE_SHIFT)

Definition at line 76 of file openlibm_fenv_mips.h.

◆ _ENABLE_SHIFT

#define _ENABLE_SHIFT   5

Definition at line 75 of file openlibm_fenv_mips.h.

◆ _FCSR_CAUSE_SHIFT

#define _FCSR_CAUSE_SHIFT   10

Definition at line 51 of file openlibm_fenv_mips.h.

◆ _ROUND_MASK

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

Definition at line 66 of file openlibm_fenv_mips.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 58 of file openlibm_fenv_mips.h.

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&__fe_dfl_env)

Definition at line 72 of file openlibm_fenv_mips.h.

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   0x0020

Definition at line 53 of file openlibm_fenv_mips.h.

◆ FE_DOWNWARD

#define FE_DOWNWARD   0x0003

Definition at line 65 of file openlibm_fenv_mips.h.

◆ FE_INEXACT

#define FE_INEXACT   0x0004

Definition at line 56 of file openlibm_fenv_mips.h.

◆ FE_INVALID

#define FE_INVALID   0x0040

Definition at line 52 of file openlibm_fenv_mips.h.

◆ FE_OVERFLOW

#define FE_OVERFLOW   0x0010

Definition at line 54 of file openlibm_fenv_mips.h.

◆ FE_TONEAREST

#define FE_TONEAREST   0x0000

Definition at line 62 of file openlibm_fenv_mips.h.

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   0x0001

Definition at line 63 of file openlibm_fenv_mips.h.

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   0x0008

Definition at line 55 of file openlibm_fenv_mips.h.

◆ FE_UPWARD

#define FE_UPWARD   0x0002

Definition at line 64 of file openlibm_fenv_mips.h.

Typedef Documentation

◆ fenv_t

typedef uint32_t fenv_t

Definition at line 39 of file openlibm_fenv_mips.h.

◆ fexcept_t

Definition at line 40 of file openlibm_fenv_mips.h.

Function Documentation

◆ feclearexcept()

__fenv_static int feclearexcept ( int  __excepts)
inline

Definition at line 97 of file openlibm_fenv_mips.h.

◆ fegetenv()

__fenv_static int fegetenv ( fenv_t __envp)
inline

Definition at line 186 of file openlibm_fenv_mips.h.

◆ fegetexceptflag()

__fenv_static int fegetexceptflag ( fexcept_t __flagp,
int  __excepts 
)
inline

Definition at line 110 of file openlibm_fenv_mips.h.

◆ fegetround()

__fenv_static int fegetround ( void  )
inline

Definition at line 160 of file openlibm_fenv_mips.h.

◆ feholdexcept()

__fenv_static int feholdexcept ( fenv_t __envp)
inline

Definition at line 195 of file openlibm_fenv_mips.h.

◆ feraiseexcept()

__fenv_static int feraiseexcept ( int  __excepts)
inline

Definition at line 136 of file openlibm_fenv_mips.h.

◆ fesetenv()

__fenv_static int fesetenv ( const fenv_t __envp)
inline

Definition at line 208 of file openlibm_fenv_mips.h.

◆ fesetexceptflag()

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

Definition at line 122 of file openlibm_fenv_mips.h.

◆ fesetround()

__fenv_static int fesetround ( int  __round)
inline

Definition at line 170 of file openlibm_fenv_mips.h.

◆ fetestexcept()

__fenv_static int fetestexcept ( int  __excepts)
inline

Definition at line 149 of file openlibm_fenv_mips.h.

◆ feupdateenv()

__fenv_static int feupdateenv ( const fenv_t __envp)
inline

Definition at line 217 of file openlibm_fenv_mips.h.

Variable Documentation

◆ __fe_dfl_env

__BEGIN_DECLS const fenv_t __fe_dfl_env
extern