Package kilim.examples
Class Xorshift
java.lang.Object
kilim.examples.Xorshift
a demo and benchmark of kilim generators used to implement the xorshift PRNG
runs xorshift a number of cycles, printing the nanos per cycle and the xor of the result
the value is printed just to ensure that the JIT actually runs all the code
https://en.wikipedia.org/wiki/Xorshift#xorshift.2B
with modes to run the same algorithm as a Generator and as a raw Continuation (the default)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfacestatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidcycle(Xorshift.Loop looper, long num) static void
-
Constructor Details
-
Xorshift
public Xorshift()
-
-
Method Details
-
main
-
cycle
-