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
8138205b
Commit
8138205b
authored
Mar 22, 2014
by
Damien George
Browse files
stm/stmhal: Add more math stubs.
parent
62805873
Changes
2
Hide whitespace changes
Inline
Side-by-side
stm/math.c
View file @
8138205b
...
...
@@ -48,6 +48,14 @@ float ceilf(float x) { return 0.0; }
float
floorf
(
float
x
)
{
return
0
.
0
;
}
float
truncf
(
float
x
)
{
return
0
.
0
;
}
float
fmodf
(
float
x
,
float
y
)
{
return
0
.
0
;
}
float
gammaf
(
float
x
)
{
return
0
.
0
;
}
float
lgammaf
(
float
x
)
{
return
0
.
0
;
}
float
erff
(
float
x
)
{
return
0
.
0
;
}
float
erfcf
(
float
x
)
{
return
0
.
0
;
}
float
modff
(
float
x
,
float
*
y
)
{
return
0
.
0
;
}
float
frexpf
(
float
x
,
int
*
exp
)
{
return
0
.
0
;
}
float
ldexpf
(
float
x
,
int
exp
)
{
return
0
.
0
;
}
int
__fpclassifyf
(
float
x
)
{
return
0
;
}
/*****************************************************************************/
// from musl-0.9.15 libm.h
...
...
stmhal/math.c
View file @
8138205b
...
...
@@ -48,6 +48,14 @@ float ceilf(float x) { return 0.0; }
float
floorf
(
float
x
)
{
return
0
.
0
;
}
float
truncf
(
float
x
)
{
return
0
.
0
;
}
float
fmodf
(
float
x
,
float
y
)
{
return
0
.
0
;
}
float
gammaf
(
float
x
)
{
return
0
.
0
;
}
float
lgammaf
(
float
x
)
{
return
0
.
0
;
}
float
erff
(
float
x
)
{
return
0
.
0
;
}
float
erfcf
(
float
x
)
{
return
0
.
0
;
}
float
modff
(
float
x
,
float
*
y
)
{
return
0
.
0
;
}
float
frexpf
(
float
x
,
int
*
exp
)
{
return
0
.
0
;
}
float
ldexpf
(
float
x
,
int
exp
)
{
return
0
.
0
;
}
int
__fpclassifyf
(
float
x
)
{
return
0
;
}
/*****************************************************************************/
// from musl-0.9.15 libm.h
...
...
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