Merge pull request #331 from iabdalkader/master

Implement machine_sqrt using VSQRT
This commit is contained in:
Damien George 2014-03-02 00:39:18 +00:00
commit 86227ce7b0
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}