Mark uint add/sub/mul/div/rem functions as pure

This commit is contained in:
Matt Brubeck 2011-10-27 12:18:51 -07:00 committed by Brian Anderson
parent 8dba51b87c
commit 9e4c2b6bc6

View File

@ -14,15 +14,15 @@
ret 0u - 1u;
}
fn add(x: uint, y: uint) -> uint { ret x + y; }
pure fn add(x: uint, y: uint) -> uint { ret x + y; }
fn sub(x: uint, y: uint) -> uint { ret x - y; }
pure fn sub(x: uint, y: uint) -> uint { ret x - y; }
fn mul(x: uint, y: uint) -> uint { ret x * y; }
pure fn mul(x: uint, y: uint) -> uint { ret x * y; }
fn div(x: uint, y: uint) -> uint { ret x / y; }
pure fn div(x: uint, y: uint) -> uint { ret x / y; }
fn rem(x: uint, y: uint) -> uint { ret x % y; }
pure fn rem(x: uint, y: uint) -> uint { ret x % y; }
pure fn lt(x: uint, y: uint) -> bool { ret x < y; }