Implement machine_sqrt using VSQRT

This commit is contained in:
mux 2014-03-02 00:33:39 +02:00
parent 75a35c496d
commit 6882dbd9f8

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