Files
c3c/lib/std/math/math_builtin.c3
Christoffer Lerno a0a5c940f1 Add --strip-unused.
2023-02-16 22:11:42 +01:00

14 lines
264 B
Plaintext

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