blob: cb292078771fbcbaeeb462911d8c144635725579 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
USE plato;
$shiftSteps=1;
$linear = ($x, $z)->{
$v = 10 * $z + $x;
$shift = ($item) -> {return $item << $shiftSteps};
res = Math::Floor(Math::Pi() * $shift($v)); -- no '$' in variable, should be $res = ...
return $res
};
--INSERT INTO Output
SELECT t.*, $linear(cast(key as uint64), cast(subkey as uint64)) FROM Input as t;
|