diff options
| author | mux <freelancer.c@gmail.com> | 2014-03-02 00:33:39 +0200 |
|---|---|---|
| committer | mux <freelancer.c@gmail.com> | 2014-03-02 00:33:39 +0200 |
| commit | 6882dbd9f866ec00dd1ea62cfa15c1c3fcfdc198 (patch) | |
| tree | caa6f5b2805de85c900118171274e04bde708298 | |
| parent | 75a35c496d97d6d843304ceee22c0709fb3a72c8 (diff) | |
Implement machine_sqrt using VSQRT
| -rw-r--r-- | stm/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/stm/main.c b/stm/main.c index 28e0e5065..5ab17cd3d 100644 --- a/stm/main.c +++ b/stm/main.c @@ -675,6 +675,9 @@ double sqrt(double x) { } machine_float_t machine_sqrt(machine_float_t x) { - // TODO + asm volatile ( + "vsqrt.f32 %[r], %[x]\n" + : [r] "=t" (x) + : [x] "t" (x)); return x; } |
