diff options
author | Damien <damien.p.george@gmail.com> | 2013-11-09 20:14:30 +0000 |
---|---|---|
committer | Damien <damien.p.george@gmail.com> | 2013-11-09 20:14:30 +0000 |
commit | 087d218d95a42fc90bc6c4d2609d300c75ffc03d (patch) | |
tree | 9892ee3ed8204c9a924bdeeaf233ff0c3de1dec1 /unix/main.c | |
parent | 6b92d451b28f277e09d6391e9bcd4cec3ef28784 (diff) | |
download | micropython-087d218d95a42fc90bc6c4d2609d300c75ffc03d.tar.gz micropython-087d218d95a42fc90bc6c4d2609d300c75ffc03d.zip |
Unix: add machine-specific sqrt support.
Diffstat (limited to 'unix/main.c')
-rw-r--r-- | unix/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c index 1c0f78f8b9..faf8e5b276 100644 --- a/unix/main.c +++ b/unix/main.c @@ -176,3 +176,9 @@ int main(int argc, char **argv) { //printf("total bytes = %d\n", m_get_total_bytes_allocated()); return 0; } + +// for sqrt +#include <math.h> +machine_float_t machine_sqrt(machine_float_t x) { + return sqrt(x); +} |