Changeset View
Changeset View
Standalone View
Standalone View
lib/msun/riscv/fenv.h
Show First 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | feupdateenv(const fenv_t *__envp) | ||||
feraiseexcept(__fcsr & FE_ALL_EXCEPT); | feraiseexcept(__fcsr & FE_ALL_EXCEPT); | ||||
return (0); | return (0); | ||||
} | } | ||||
#endif /* !__riscv_float_abi_soft */ | #endif /* !__riscv_float_abi_soft */ | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
/* We currently provide no external definitions of the functions below. */ | |||||
#ifdef __riscv_float_abi_soft | #ifdef __riscv_float_abi_soft | ||||
int feenableexcept(int __mask); | int feenableexcept(int __mask); | ||||
int fedisableexcept(int __mask); | int fedisableexcept(int __mask); | ||||
int fegetexcept(void); | int fegetexcept(void); | ||||
#else | #else | ||||
static inline int | __fenv_static inline int | ||||
feenableexcept(int __mask __unused) | feenableexcept(int __mask __unused) | ||||
{ | { | ||||
/* No exception traps. */ | /* No exception traps. */ | ||||
return (0); | return (0); | ||||
} | } | ||||
static inline int | __fenv_static inline int | ||||
fedisableexcept(int __mask __unused) | fedisableexcept(int __mask __unused) | ||||
{ | { | ||||
/* No exception traps. */ | /* No exception traps. */ | ||||
return (0); | return (0); | ||||
} | } | ||||
/* We currently provide no external definition of fegetexcept(). */ | |||||
static inline int | static inline int | ||||
fegetexcept(void) | fegetexcept(void) | ||||
{ | { | ||||
/* No exception traps. */ | /* No exception traps. */ | ||||
return (0); | return (0); | ||||
} | } | ||||
#endif /* !__riscv_float_abi_soft */ | #endif /* !__riscv_float_abi_soft */ | ||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
__END_DECLS | __END_DECLS | ||||
#endif /* !_FENV_H_ */ | #endif /* !_FENV_H_ */ |