Mark uint add/sub/mul/div/rem functions as pure
This commit is contained in:
parent
8dba51b87c
commit
9e4c2b6bc6
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user