同步操作将从 dwing/sharecode 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import java.security.SecureRandom;class Xoshiro {private long s0, s1, s2, s3;public Xoshiro() {SecureRandom sr = new SecureRandom();do {s0 = sr.nextLong();s1 = sr.nextLong();s2 = sr.nextLong();s3 = sr.nextLong();}while ((s0 | s1 | s2 | s3) == 0);}public long nextLong() {long r = Long.rotateLeft(s1 * 5, 7) * 9;long n = s1 << 17;s2 ^= s0;s3 ^= s1;s1 ^= s2;s0 ^= s3;s2 ^= n;s3 = Long.rotateLeft(s3, 45);return r;}public int nextInt() {return (int)nextLong();}public float nextFloat() {return (float)(nextLong() >>> 40) * 0x1.0p-24f;}public double nextDouble() {return (double)(nextLong() >>> 11) * 0x1.0p-53;}}public class Test16 {public static void main(String[] args) {long t1 = System.currentTimeMillis();S s = new S();//noinspection UnnecessaryLocalVariableI i = s;var random = new Xoshiro(); // ThreadLocalRandom.current();for (long j = 0; j < 10_0000_0000; j++)i.f((int)(random.nextDouble() * 1000));System.out.println(((System.currentTimeMillis() - t1) / 1000f) + " sec");System.out.println(s.a);}interface I {void f(int d);}static class S implements I {long a;@Overridepublic void f(int d) {a += d;}}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。