mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ManyFunctions performance test: replace xor with correct exp operator
This commit is contained in:
parent
fc4a548d6f
commit
20ed953910
File diff suppressed because it is too large
Load Diff
@ -7,14 +7,14 @@ i = 1
|
||||
template = """
|
||||
function right{0}(uint seed) returns (uint) {{
|
||||
var r = nextRand(seed);
|
||||
if (r >= 2^{2})
|
||||
if (r >= 2**{2})
|
||||
return right{1}(r);
|
||||
return left{1}(r);
|
||||
}}
|
||||
|
||||
function left{0}(uint seed) returns (uint) {{
|
||||
var r = nextRand(nextRand(seed));
|
||||
if (r >= 2^{2})
|
||||
if (r >= 2**{2})
|
||||
return left{1}(r);
|
||||
return right{1}(r);
|
||||
}}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user