Skip to main content

nifty_rt/abi/
numbers.rs

1//! Arithmetic Cranelift has no instruction for.
2
3/// `a % b` on floats, which keeps the sign of `a`, as the interpreter's does.
4#[unsafe(no_mangle)]
5pub(crate) extern "C" fn nf_float_rem(a: f64, b: f64) -> f64 {
6    a % b
7}