diff --git a/lib/std/math_builtin.c3 b/lib/std/math_builtin.c3 new file mode 100644 index 000000000..908e88c03 --- /dev/null +++ b/lib/std/math_builtin.c3 @@ -0,0 +1,13 @@ +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; +} diff --git a/src/version.h b/src/version.h index c895b5092..900da2d32 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define COMPILER_VERSION "0.4.12" \ No newline at end of file +#define COMPILER_VERSION "0.4.13" \ No newline at end of file