Files
c3c/lib/std/math/math_builtin.c3
2023-01-19 22:49:30 +01:00

14 lines
248 B
C

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