aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-21 10:37:49 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-21 10:37:49 +0100
commit4ecd6e592b7ae87a0a03234a647398614d32d3e8 (patch)
tree3e5bb407751f645195cee481648688128542998d
parentdbddec33c8247beb5984d0c3fbcdf86a94054248 (diff)
Fix missing semicolons in math.odin
-rw-r--r--core/math.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/math.odin b/core/math.odin
index 04af9593a..cd4e165af 100644
--- a/core/math.odin
+++ b/core/math.odin
@@ -78,11 +78,11 @@ copy_sign :: proc(x, y: f64) -> f64 {
round :: proc(x: f32) -> f32 { if x >= 0 do return floor(x + 0.5); return ceil(x - 0.5); }
round :: proc(x: f64) -> f64 { if x >= 0 do return floor(x + 0.5); return ceil(x - 0.5); }
-floor :: proc(x: f32) -> f32 { if x >= 0 do f32(i64(x)) return f32(i64(x-0.5)); } // TODO: Get accurate versions
-floor :: proc(x: f64) -> f64 { if x >= 0 do f64(i64(x)) return f64(i64(x-0.5)); } // TODO: Get accurate versions
+floor :: proc(x: f32) -> f32 { if x >= 0 do f32(i64(x)); return f32(i64(x-0.5)); } // TODO: Get accurate versions
+floor :: proc(x: f64) -> f64 { if x >= 0 do f64(i64(x)); return f64(i64(x-0.5)); } // TODO: Get accurate versions
-ceil :: proc(x: f32) -> f32 { if x < 0 do f32(i64(x)) return f32(i64(x+1)); }// TODO: Get accurate versions
-ceil :: proc(x: f64) -> f64 { if x < 0 do f64(i64(x)) return f64(i64(x+1)); }// TODO: Get accurate versions
+ceil :: proc(x: f32) -> f32 { if x < 0 do f32(i64(x)); return f32(i64(x+1)); }// TODO: Get accurate versions
+ceil :: proc(x: f64) -> f64 { if x < 0 do f64(i64(x)); return f64(i64(x+1)); }// TODO: Get accurate versions
remainder :: proc(x, y: f32) -> f32 do return x - round(x/y) * y;
remainder :: proc(x, y: f64) -> f64 do return x - round(x/y) * y;