Harlinn.Windows 0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Friends Macros Modules Pages Concepts
s_nearbyint.inl File Reference
#include "cdefs-compat.h"
#include "openlibm_math.h"
#include "math_private.h"
Include dependency graph for s_nearbyint.inl:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  Harlinn
 
namespace  Harlinn::Common
 
namespace  Harlinn::Common::Core
 
namespace  Harlinn::Common::Core::Math
 
namespace  Harlinn::Common::Core::Math::Internal
 
namespace  Harlinn::Common::Core::Math::Internal::OpenLibM
 

Macros

#define DECL(type, fn, rint)
 

Macro Definition Documentation

◆ DECL

#define DECL ( type,
fn,
rint )
Value:
constexpr inline type \
fn(type x) \
{ \
if ( std::is_constant_evaluated( ) ) \
{\
return rint(x); \
}\
else \
{\
type ret; \
fenv_t env; \
\
fegetenv(&env); \
ret = rint(x); \
fesetenv(&env); \
return (ret); \
}\
}
#define type
Definition s_llrint.inl:4