Class Xorshift

java.lang.Object
kilim.examples.Xorshift

public class Xorshift extends Object
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)
  • Constructor Details

    • Xorshift

      public Xorshift()
  • Method Details

    • main

      public static void main(String[] args)
    • cycle

      static void cycle(Xorshift.Loop looper, long num)