summaryrefslogtreecommitdiff
path: root/components/libc/newlib/math.c
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-26 10:21:24 +0000
committerbernard.xiong <[email protected]>2010-04-26 10:21:24 +0000
commit914e28189296ce9bd4ede38c7faebbd8c88f82ac (patch)
treed9e0777dfe6de390596e48b8653f73445860a5cd /components/libc/newlib/math.c
parentc8efa6b33199881b28df5f5dc2e7ea716cecee8d (diff)
add more stub for newlib porting.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@669 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/libc/newlib/math.c')
-rw-r--r--components/libc/newlib/math.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/libc/newlib/math.c b/components/libc/newlib/math.c
new file mode 100644
index 0000000000..d86abe5877
--- /dev/null
+++ b/components/libc/newlib/math.c
@@ -0,0 +1,12 @@
+#include <math.h>
+
+/* Fix me */
+double sin(double x)
+{
+ #warning sin function not supported for this platform
+}
+
+double cos(double x)
+{
+ #warning cos function not supported for this platform
+}