forked from M-Labs/nac3
1
0
Fork 0

add libm functions from legacy runtime

This commit is contained in:
Sebastien Bourdeauducq 2020-07-21 22:58:56 +08:00
parent d11e3fdad8
commit 9b07468e50
1 changed files with 9 additions and 0 deletions

View File

@ -139,6 +139,15 @@ pub fn resolve(required: &[u8]) -> Option<u32> {
api!(__artiq_reraise = eh_artiq::reraise),
// libm
api_libm_f64f64!(sqrt),
api_libm_f64f64!(round),
api_libm_f64f64!(floor),
{
extern fn fmod(x: f64, y: f64) -> f64 {
libm::fmod(x, y)
}
api!(fmod = fmod)
},
api_libm_f64f64!(log),
api_libm_f64f64!(log10),
api_libm_f64f64!(exp),