mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 21:47:28 +08:00
cxx/cmath: expose 'nextafter'
expose 'nextafter' Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
8c3106e2a4
commit
9c38276249
@@ -99,6 +99,9 @@ namespace std
|
||||
isnan(float __x)
|
||||
{ return __builtin_isnan(__x); }
|
||||
|
||||
constexpr float
|
||||
nextafter(float from, float to)
|
||||
{ return ::nextafterf(from, to); }
|
||||
|
||||
#endif
|
||||
|
||||
@@ -152,6 +155,10 @@ namespace std
|
||||
isnan(double __x)
|
||||
{ return __builtin_isnan(__x); }
|
||||
|
||||
constexpr double
|
||||
nextafter(double from, double to)
|
||||
{ return ::nextafter(from, to); }
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_HAVE_LONG_DOUBLE
|
||||
@@ -202,6 +209,10 @@ namespace std
|
||||
isnan(long double __x)
|
||||
{ return __builtin_isnan(__x); }
|
||||
|
||||
constexpr long double
|
||||
nextafter(long double from, long double to)
|
||||
{ return ::nextafterl(from, to); }
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user