Commit 6882dbd9 authored by mux's avatar mux
Browse files

Implement machine_sqrt using VSQRT

parent 75a35c49
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment