Files
c3c/lib/std/math/math_builtin.c3
2023-02-02 21:53:37 +01:00

14 lines
246 B
C

module std::math;
fn float __roundevenf(float f) @extern("roundevenf") @weak
{
// Slow implementation
return round(f / 2) * 2;
}
fn double __roundeven(double d) @extern("roundeven") @weak
{
// Slow implementation
return round(d / 2) * 2;
}