Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
86227ce7
Commit
86227ce7
authored
Mar 02, 2014
by
Damien George
Browse files
Merge pull request #331 from iabdalkader/master
Implement machine_sqrt using VSQRT
parents
75a35c49
6882dbd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
stm/main.c
View file @
86227ce7
...
...
@@ -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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment