From 4ecd6e592b7ae87a0a03234a647398614d32d3e8 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 21 Jul 2017 10:37:49 +0100 Subject: [PATCH] Fix missing semicolons in math.odin --- core/math.odin | 8 ++++---- 1 file 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;