introduce bitloops
This commit is contained in:
@@ -10,14 +10,11 @@ public final class DictDataL2 {
|
||||
static final int POS_LEN = 208;
|
||||
|
||||
private static long[] words() {
|
||||
return DictDataL2W0.DATA;
|
||||
return DictDataL2W0.get();
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL2P0.DATA);
|
||||
return out;
|
||||
return DictDataL2P0.get();
|
||||
}
|
||||
|
||||
public static SwedishGenerator.DictEntry entry() {
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL2P0 {
|
||||
private DictDataL2P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x2210a009040800L,
|
||||
0x308000004108008L,
|
||||
0x0L,
|
||||
@@ -212,4 +213,5 @@ public final class DictDataL2P0 {
|
||||
0x0L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL2W0 {
|
||||
private DictDataL2W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x100000001c5L,
|
||||
0x90000000245L,
|
||||
0x1100000000b4L,
|
||||
@@ -215,4 +216,5 @@ public final class DictDataL2W0 {
|
||||
0x6890000000066L,
|
||||
0x6910000000156L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,14 +10,11 @@ public final class DictDataL3 {
|
||||
static final int POS_LEN = 1326;
|
||||
|
||||
private static long[] words() {
|
||||
return DictDataL3W0.DATA;
|
||||
return DictDataL3W0.get();
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL3P0.DATA);
|
||||
return out;
|
||||
return DictDataL3P0.get();
|
||||
}
|
||||
|
||||
public static SwedishGenerator.DictEntry entry() {
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL3P0 {
|
||||
private DictDataL3P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x2000000000001010L,
|
||||
0x0L,
|
||||
0x800300e020008000L,
|
||||
@@ -1330,4 +1331,5 @@ public final class DictDataL3P0 {
|
||||
0x0L,
|
||||
0xc08009L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL3W0 {
|
||||
private DictDataL3W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x200000038a5L,
|
||||
0xa0000005024L,
|
||||
0x1200000050a8L,
|
||||
@@ -1052,4 +1053,5 @@ public final class DictDataL3W0 {
|
||||
0x20b20000006ae4L,
|
||||
0x20ba00000069faL
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,14 +10,11 @@ public final class DictDataL4 {
|
||||
static final int POS_LEN = 4264;
|
||||
|
||||
private static long[] words() {
|
||||
return DictDataL4W0.DATA;
|
||||
return DictDataL4W0.get();
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL4P0.DATA);
|
||||
return out;
|
||||
return DictDataL4P0.get();
|
||||
}
|
||||
|
||||
public static SwedishGenerator.DictEntry entry() {
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL4P0 {
|
||||
private DictDataL4P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x800000000L,
|
||||
0x1000000000L,
|
||||
0xc000000000800L,
|
||||
@@ -4268,4 +4269,5 @@ public final class DictDataL4P0 {
|
||||
0x0L,
|
||||
0x4L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL4W0 {
|
||||
private DictDataL4W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x3000009042eL,
|
||||
0xb00000a152eL,
|
||||
0x1300000714a7L,
|
||||
@@ -2609,4 +2610,5 @@ public final class DictDataL4W0 {
|
||||
0x515b0000063688L,
|
||||
0x51630000085288L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,14 +10,14 @@ public final class DictDataL5 {
|
||||
static final int POS_LEN = 9100;
|
||||
|
||||
private static long[] words() {
|
||||
return DictDataL5W0.DATA;
|
||||
return DictDataL5W0.get();
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL5P0.DATA);
|
||||
k = copy(out, k, DictDataL5P1.DATA);
|
||||
k = copy(out, k, DictDataL5P0.get());
|
||||
k = copy(out, k, DictDataL5P1.get());
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL5P0 {
|
||||
private DictDataL5P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0xc0000080001000L,
|
||||
0x8000060000010L,
|
||||
0xc0000000004000L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL5P0 {
|
||||
0xe42b1c001045cf6dL,
|
||||
0x1f0441a0de89e5fdL
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL5P1 {
|
||||
private DictDataL5P1() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x2c8480052e3080L,
|
||||
0x8405941a12001100L,
|
||||
0x145d84220a201L,
|
||||
@@ -912,4 +913,5 @@ public final class DictDataL5P1 {
|
||||
0x0L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL5W0 {
|
||||
private DictDataL5W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x40000e2b4aeL,
|
||||
0xc000149c8a5L,
|
||||
0x140000e29d25L,
|
||||
@@ -4438,4 +4439,5 @@ public final class DictDataL5W0 {
|
||||
0x8a840000c7c877L,
|
||||
0x8a8c000055612dL
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,15 +10,15 @@ public final class DictDataL6 {
|
||||
static final int POS_LEN = 19500;
|
||||
|
||||
private static long[] words() {
|
||||
return DictDataL6W0.DATA;
|
||||
return DictDataL6W0.get();
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL6P0.DATA);
|
||||
k = copy(out, k, DictDataL6P1.DATA);
|
||||
k = copy(out, k, DictDataL6P2.DATA);
|
||||
k = copy(out, k, DictDataL6P0.get());
|
||||
k = copy(out, k, DictDataL6P1.get());
|
||||
k = copy(out, k, DictDataL6P2.get());
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL6P0 {
|
||||
private DictDataL6P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x60000010024001L,
|
||||
0x200000000800L,
|
||||
0x0L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL6P0 {
|
||||
0x10200000c41180L,
|
||||
0x400000a4000000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL6P1 {
|
||||
private DictDataL6P1() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x4008000104000000L,
|
||||
0xc200000e300002L,
|
||||
0x2020L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL6P1 {
|
||||
0x0L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL6P2 {
|
||||
private DictDataL6P2() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x0L,
|
||||
0x0L,
|
||||
0x0L,
|
||||
@@ -3120,4 +3121,5 @@ public final class DictDataL6P2 {
|
||||
0x0L,
|
||||
0x8000000000000000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL6W0 {
|
||||
private DictDataL6W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x5001c52b181L,
|
||||
0xd001c5a15edL,
|
||||
0x150008e0b4a9L,
|
||||
@@ -8004,4 +8005,5 @@ public final class DictDataL6W0 {
|
||||
0xf9f500265561e2L,
|
||||
0xf9fd00349ac6d4L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,18 +12,18 @@ public final class DictDataL7 {
|
||||
private static long[] words() {
|
||||
long[] out = new long[WORDS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL7W0.DATA);
|
||||
k = copy(out, k, DictDataL7W1.DATA);
|
||||
k = copy(out, k, DictDataL7W0.get());
|
||||
k = copy(out, k, DictDataL7W1.get());
|
||||
return out;
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL7P0.DATA);
|
||||
k = copy(out, k, DictDataL7P1.DATA);
|
||||
k = copy(out, k, DictDataL7P2.DATA);
|
||||
k = copy(out, k, DictDataL7P3.DATA);
|
||||
k = copy(out, k, DictDataL7P0.get());
|
||||
k = copy(out, k, DictDataL7P1.get());
|
||||
k = copy(out, k, DictDataL7P2.get());
|
||||
k = copy(out, k, DictDataL7P3.get());
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL7P0 {
|
||||
private DictDataL7P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x400000000001001L,
|
||||
0x1c0003800c0L,
|
||||
0x1800000cL,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL7P0 {
|
||||
0x0L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL7P1 {
|
||||
private DictDataL7P1() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x0L,
|
||||
0x0L,
|
||||
0x0L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL7P1 {
|
||||
0x0L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL7P2 {
|
||||
private DictDataL7P2() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x0L,
|
||||
0x0L,
|
||||
0x0L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL7P2 {
|
||||
0x2040000001L,
|
||||
0x8000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL7P3 {
|
||||
private DictDataL7P3() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x2009202L,
|
||||
0x1000000204L,
|
||||
0x80000000000L,
|
||||
@@ -7096,4 +7097,5 @@ public final class DictDataL7P3 {
|
||||
0x4000000000000L,
|
||||
0x8004000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL7W0 {
|
||||
private DictDataL7W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x6038b2291c1L,
|
||||
0xe015f49042eL,
|
||||
0x16048a573837L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL7W0 {
|
||||
0xfff6048ac0e5f2L,
|
||||
0xfffe01dc96a6b2L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL7W1 {
|
||||
private DictDataL7W1() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x10006038b4abc73L,
|
||||
0x1000e056740a513L,
|
||||
0x10016038b45a5d3L,
|
||||
@@ -2946,4 +2947,5 @@ public final class DictDataL7W1 {
|
||||
0x15be604caa9d2adL,
|
||||
0x15bee04ce1d1d3aL
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,20 +12,20 @@ public final class DictDataL8 {
|
||||
private static long[] words() {
|
||||
long[] out = new long[WORDS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL8W0.DATA);
|
||||
k = copy(out, k, DictDataL8W1.DATA);
|
||||
k = copy(out, k, DictDataL8W0.get());
|
||||
k = copy(out, k, DictDataL8W1.get());
|
||||
return out;
|
||||
}
|
||||
|
||||
private static long[] posFlat() {
|
||||
long[] out = new long[POS_LEN];
|
||||
int k = 0;
|
||||
k = copy(out, k, DictDataL8P0.DATA);
|
||||
k = copy(out, k, DictDataL8P1.DATA);
|
||||
k = copy(out, k, DictDataL8P2.DATA);
|
||||
k = copy(out, k, DictDataL8P3.DATA);
|
||||
k = copy(out, k, DictDataL8P4.DATA);
|
||||
k = copy(out, k, DictDataL8P5.DATA);
|
||||
k = copy(out, k, DictDataL8P0.get());
|
||||
k = copy(out, k, DictDataL8P1.get());
|
||||
k = copy(out, k, DictDataL8P2.get());
|
||||
k = copy(out, k, DictDataL8P3.get());
|
||||
k = copy(out, k, DictDataL8P4.get());
|
||||
k = copy(out, k, DictDataL8P5.get());
|
||||
return out;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8P0 {
|
||||
private DictDataL8P0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x380200004284L,
|
||||
0xc000000000000L,
|
||||
0x2000001000030L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL8P0 {
|
||||
0x0L,
|
||||
0x1ffc000000000000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8P1 {
|
||||
private DictDataL8P1() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x1800L,
|
||||
0xffc000L,
|
||||
0xc0000000000L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL8P1 {
|
||||
0x0L,
|
||||
0x301000004000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8P2 {
|
||||
private DictDataL8P2() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x200000020000000L,
|
||||
0x0L,
|
||||
0x80000000000000L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL8P2 {
|
||||
0xc0310000L,
|
||||
0x2080L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8P3 {
|
||||
private DictDataL8P3() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x40120008L,
|
||||
0x80000000000000L,
|
||||
0x103000320000L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL8P3 {
|
||||
0x4000200401L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8P4 {
|
||||
private DictDataL8P4() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x0L,
|
||||
0x0L,
|
||||
0x0L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL8P4 {
|
||||
0x0L,
|
||||
0x200004000000L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8P5 {
|
||||
private DictDataL8P5() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x401080000100L,
|
||||
0x4000000000000000L,
|
||||
0x10040L,
|
||||
@@ -2100,4 +2101,5 @@ public final class DictDataL8P5 {
|
||||
0x0L,
|
||||
0x0L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8W0 {
|
||||
private DictDataL8W0() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x7714b2290a9L,
|
||||
0xf7148e2a656L,
|
||||
0x176042d2b181L,
|
||||
@@ -8196,4 +8197,5 @@ public final class DictDataL8W0 {
|
||||
0xfff7224a89ac2cL,
|
||||
0xffff9b9e98342cL
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,8 @@ package puzzle;
|
||||
|
||||
public final class DictDataL8W1 {
|
||||
private DictDataL8W1() {}
|
||||
public static final long[] DATA = new long[] {
|
||||
public static long[] get() {
|
||||
return new long[] {
|
||||
0x100072a58f8342cL,
|
||||
0x1000f2cdca4d02cL,
|
||||
0x10017a3c522d8acL,
|
||||
@@ -5050,4 +5051,5 @@ public final class DictDataL8W1 {
|
||||
0x19da79d023cc1e3L,
|
||||
0x19daf9ac6186133L
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user