summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-26 18:52:28 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-26 18:52:28 -0600
commitbacbb4255c9408e3ce669563f2fb1d4067947c1a (patch)
treee6f2493bbab4117b96e5ad8ee8c86a14e9a05610 /nuttx/include
parent69283d36b665ba41085021eb36066bfa074c6884 (diff)
downloadpx4-nuttx-bacbb4255c9408e3ce669563f2fb1d4067947c1a.tar.gz
px4-nuttx-bacbb4255c9408e3ce669563f2fb1d4067947c1a.tar.bz2
px4-nuttx-bacbb4255c9408e3ce669563f2fb1d4067947c1a.zip
Add math library support for copysign. From Brennan Ashton
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/math.h b/nuttx/include/nuttx/math.h
index 281b87ed5..b2ddcc4bb 100644
--- a/nuttx/include/nuttx/math.h
+++ b/nuttx/include/nuttx/math.h
@@ -369,6 +369,14 @@ long double erfl (long double x);
#define erfcl(x) (1 - erfl(x))
#endif
+float copysignf (float x, float y);
+#if CONFIG_HAVE_DOUBLE
+double copysign (double x, double y);
+#endif
+#ifdef CONFIG_HAVE_LONG_DOUBLE
+long double copysignl (long double x, long double y);
+#endif
+
#if defined(__cplusplus)
}
#endif