forked from M-Labs/artiq
runtime: export floor() in ksupport. Closes #828
This commit is contained in:
parent
34bc8e3c03
commit
5c5f86cdea
|
@ -18,8 +18,9 @@
|
||||||
#include "dds.h"
|
#include "dds.h"
|
||||||
#include "i2c.h"
|
#include "i2c.h"
|
||||||
|
|
||||||
double round(double x);
|
|
||||||
double sqrt(double x);
|
double sqrt(double x);
|
||||||
|
double round(double x);
|
||||||
|
double floor(double x);
|
||||||
|
|
||||||
void ksupport_abort(void);
|
void ksupport_abort(void);
|
||||||
static void attribute_writeback(void *);
|
static void attribute_writeback(void *);
|
||||||
|
@ -88,8 +89,9 @@ static const struct symbol runtime_exports[] = {
|
||||||
{"__powidf2", &__powidf2},
|
{"__powidf2", &__powidf2},
|
||||||
|
|
||||||
/* libm */
|
/* libm */
|
||||||
{"round", &round},
|
|
||||||
{"sqrt", &sqrt},
|
{"sqrt", &sqrt},
|
||||||
|
{"round", &round},
|
||||||
|
{"floor", &floor},
|
||||||
|
|
||||||
/* exceptions */
|
/* exceptions */
|
||||||
{"_Unwind_Resume", &_Unwind_Resume},
|
{"_Unwind_Resume", &_Unwind_Resume},
|
||||||
|
|
Loading…
Reference in New Issue