@@ -202,27 +202,22 @@ public static void main(String [] args) {
202
202
203
203
setup ();
204
204
205
- try {
206
- for (int i = 0 ; i < 1000000 ; i ++ ) {
207
- testByte (lengths [i % lengths .length ], r .nextInt (2048 ) , r .nextInt (2048 ));
208
- testByte_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
209
- testByte_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
210
-
211
- testChar (lengths [i % lengths .length ] >> 1 , r .nextInt (2048 ) , r .nextInt (2048 ));
212
- testChar_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
213
- testChar_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
214
-
215
- testInt (lengths [i % lengths .length ] >> 2 , r .nextInt (2048 ) , r .nextInt (2048 ));
216
- testInt_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
217
- testInt_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
218
-
219
- testLong (lengths [i % lengths .length ] >> 3 , r .nextInt (2048 ) , r .nextInt (2048 ));
220
- testLong_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
221
- testLong_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
222
- }
223
- System .out .println ("PASS : " + validate_ctr );
224
- } catch (Exception e ) {
225
- System .out .println (e .getMessage ());
205
+ for (int i = 0 ; i < 30_000 ; i ++ ) {
206
+ testByte (lengths [i % lengths .length ], r .nextInt (2048 ) , r .nextInt (2048 ));
207
+ testByte_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
208
+ testByte_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
209
+
210
+ testChar (lengths [i % lengths .length ] >> 1 , r .nextInt (2048 ) , r .nextInt (2048 ));
211
+ testChar_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
212
+ testChar_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
213
+
214
+ testInt (lengths [i % lengths .length ] >> 2 , r .nextInt (2048 ) , r .nextInt (2048 ));
215
+ testInt_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
216
+ testInt_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
217
+
218
+ testLong (lengths [i % lengths .length ] >> 3 , r .nextInt (2048 ) , r .nextInt (2048 ));
219
+ testLong_constant_LT32B (r .nextInt (2048 ) , r .nextInt (2048 ));
220
+ testLong_constant_LT64B (r .nextInt (2048 ) , r .nextInt (2048 ));
226
221
}
227
222
}
228
223
}
0 commit comments