add libm functions from legacy runtime

core0-buffer
parent d11e3fdad8
commit 9b07468e50
  1. 9
      src/runtime/src/kernel/api.rs

@ -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),

Loading…
Cancel
Save