mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
14 lines
264 B
C
14 lines
264 B
C
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;
|
|
}
|