File tree Expand file tree Collapse file tree 4 files changed +8471
-397
lines changed Expand file tree Collapse file tree 4 files changed +8471
-397
lines changed Original file line number Diff line number Diff line change 1+ start = 1025
2+ end = 5000
3+ skip_list = [2048 , 4096 ]
4+
5+ print ("//! do not edit, auto generated by:\n //!\t python gen_large.py > src/sizes/auto_gen.rs\n " )
6+ print ("use super::{impl_array_sizes, impl_array_sizes_with_import, uint};\n " )
7+
8+ # first we implement the missing ArraySizes up to 1024
9+ print ("impl_array_sizes_with_import! {" )
10+ for i in range (513 , 1024 ):
11+ if i % 16 == 0 :
12+ continue
13+ print (" " + str (i ) + " => " + "U" + str (i ) + "," )
14+ print ("}\n " )
15+
16+ for i in range (start , end ):
17+ if i in skip_list :
18+ continue
19+ print ("pub type U" + str (i ) + " = uint!(" + " " .join (bin (i )[2 :][::- 1 ]) + ");" )
20+
21+ print ("impl_array_sizes! {" )
22+ for i in range (start , end ):
23+ if i in skip_list :
24+ continue
25+ print (" " + str (i ) + " => " + "U" + str (i ) + "," )
26+ print ("}" )
You can’t perform that action at this time.
0 commit comments