aboutsummaryrefslogtreecommitdiff
path: root/nuttx/include/cxx
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/cxx')
-rw-r--r--nuttx/include/cxx/cmath62
-rw-r--r--nuttx/include/cxx/cstdbool9
-rw-r--r--nuttx/include/cxx/cstdio12
-rw-r--r--nuttx/include/cxx/cstdlib1
4 files changed, 83 insertions, 1 deletions
diff --git a/nuttx/include/cxx/cmath b/nuttx/include/cxx/cmath
index 7cb3a2109..b30d5548b 100644
--- a/nuttx/include/cxx/cmath
+++ b/nuttx/include/cxx/cmath
@@ -40,6 +40,9 @@
// Included Files
//***************************************************************************
+#include <nuttx/config.h>
+#include <nuttx/compiler.h>
+
#include <math.h>
//***************************************************************************
@@ -48,6 +51,34 @@
namespace std
{
+#if CONFIG_HAVE_FLOAT
+ using ::acosf;
+ using ::asinf;
+ using ::atanf;
+ using ::atan2f;
+ using ::ceilf;
+ using ::cosf;
+ using ::coshf;
+ using ::expf;
+ using ::fabsf;
+ using ::floorf;
+ using ::fmodf;
+ using ::frexpf;
+ using ::ldexpf;
+ using ::logf;
+ using ::log10f;
+ using ::log2f;
+ using ::modff;
+ using ::roundf;
+ using ::powf;
+ using ::sinf;
+ using ::sinhf;
+ using ::sqrtf;
+ using ::tanf;
+ using ::tanhf;
+#endif
+
+#if CONFIG_HAVE_DOUBLE
using ::acos;
using ::asin;
using ::atan;
@@ -63,13 +94,44 @@ namespace std
using ::ldexp;
using ::log;
using ::log10;
+ using ::log2;
using ::modf;
+ using ::round;
using ::pow;
using ::sin;
using ::sinh;
using ::sqrt;
using ::tan;
using ::tanh;
+#endif
+
+#ifdef CONFIG_HAVE_LONG_DOUBLE
+ using ::acosl;
+ using ::asinl;
+ using ::atanl;
+ using ::atan2l;
+ using ::ceill;
+ using ::cosl;
+ using ::coshl;
+ using ::expl;
+ using ::fabsl;
+ using ::floorl;
+ using ::fmodl;
+ using ::frexpl;
+ using ::ldexpl;
+ using ::logl;
+ using ::log10l;
+ using ::log2l;
+ using ::modfl;
+ using ::roundl;
+ using ::powl;
+ using ::sinl;
+ using ::sinhl;
+ using ::sqrtl;
+ using ::tanl;
+ using ::tanhl;
+#endif
+
}
#endif // __INCLUDE_CXX_CMATH
diff --git a/nuttx/include/cxx/cstdbool b/nuttx/include/cxx/cstdbool
index d2f0639d2..192fde490 100644
--- a/nuttx/include/cxx/cstdbool
+++ b/nuttx/include/cxx/cstdbool
@@ -46,4 +46,13 @@
// Namespace
//***************************************************************************
+//***************************************************************************
+// Namespace
+//***************************************************************************
+
+namespace std
+{
+ using ::_Bool8;
+}
+
#endif // __INCLUDE_CXX_CSTDBOOL
diff --git a/nuttx/include/cxx/cstdio b/nuttx/include/cxx/cstdio
index 900d429cb..6a9620e1a 100644
--- a/nuttx/include/cxx/cstdio
+++ b/nuttx/include/cxx/cstdio
@@ -52,6 +52,8 @@ namespace std
using ::FILE;
using ::fpos_t;
using ::size_t;
+
+ using ::clearerr;
using ::fclose;
using ::fflush;
using ::feof;
@@ -69,16 +71,24 @@ namespace std
using ::ftell;
using ::fwrite;
using ::gets;
+ using ::ungetc;
+
using ::printf;
using ::puts;
using ::rename;
using ::sprintf;
+ using ::asprintf;
using ::snprintf;
- using ::ungetc;
+ using ::sscanf;
+ using ::perror;
+
using ::vprintf;
using ::vfprintf;
using ::vsprintf;
+ using ::avsprintf;
using ::vsnprintf;
+ using ::vsscanf;
+
using ::fdopen;
using ::statfs;
}
diff --git a/nuttx/include/cxx/cstdlib b/nuttx/include/cxx/cstdlib
index 522f3fdb1..1bf8ed9da 100644
--- a/nuttx/include/cxx/cstdlib
+++ b/nuttx/include/cxx/cstdlib
@@ -70,6 +70,7 @@ namespace std
#endif
using ::strtol;
+ using ::strtoul;
using ::strtod;
using ::malloc;