Introduce substrate-demo

This commit is contained in:
Gav
2018-02-20 15:53:55 +01:00
parent 990bd1480b
commit a5042dd9ae
449 changed files with 7802 additions and 1 deletions
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":14273275588615045656,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"1.2.1"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[\"default\", \"limit_128\"]","target":1199109001173133208,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"0.1.6"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[\"default\", \"limit_128\"]","target":17567538301449956701,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"0.1.6"}],"rustflags":[]}
@@ -0,0 +1 @@
41e076aa8725cdfd
@@ -0,0 +1 @@
{"rustc":0,"features":"","target":0,"profile":0,"deps":[],"local":[{"Precalculated":"0.1.6"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":5013696897081889700,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"8dc457899afdaf968ff7f16140b03d1e37b01d71"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":12509387672031407172,"profile":731176819336294830,"deps":[["hex-literal-impl v0.1.0",2529969908488632522],["proc-macro-hack v0.4.0",4641094510796254347]],"local":[{"Precalculated":"0.1.0"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":11241083843197735319,"profile":731176819336294830,"deps":[["proc-macro-hack v0.4.0",4641094510796254347]],"local":[{"Precalculated":"0.1.0"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":9698523924128815470,"profile":731176819336294830,"deps":[["proc-macro-hack-impl v0.4.0",13894909820210766557]],"local":[{"Precalculated":"0.4.0"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":5402284247355296551,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"0.4.0"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":12003829590854714571,"profile":731176819336294830,"deps":[["pwasm-libc v0.1.0 (file:///Users/gav/Core/polkadot/substrate/pwasm-libc)",7485877435958704242]],"local":[{"MtimeBased":[[1518113559,620179670],"/Users/gav/Core/polkadot/polkadot/runtime/wasm/target/debug/.fingerprint/pwasm-alloc-0a1fe761df3cd1a4/dep-lib-pwasm_alloc-0a1fe761df3cd1a4"]}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":0,"features":"","target":0,"profile":0,"deps":[],"local":[{"Precalculated":"1518109789.829363592s (/Users/gav/Core/polkadot/substrate/pwasm-alloc/src/lib.rs)"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":14921784624115234902,"profile":731176819336294830,"deps":[["rustc_version v0.2.1",8668969671064323358]],"local":[{"MtimeBased":[[1518113558,818612709],"/Users/gav/Core/polkadot/polkadot/runtime/wasm/target/debug/.fingerprint/pwasm-alloc-d447833ce9aea37c/dep-build-script-build_script_build-d447833ce9aea37c"]}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":6884360048357664070,"profile":731176819336294830,"deps":[],"local":[{"MtimeBased":[[1518113555,449989277],"/Users/gav/Core/polkadot/polkadot/runtime/wasm/target/debug/.fingerprint/pwasm-libc-3c1fc4945ffb588c/dep-lib-pwasm_libc-3c1fc4945ffb588c"]}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":16670102957649486419,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"ee2ec40b9062ac7769ccb9dc891d6dc2cc9009d7"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":1494946782096695454,"profile":731176819336294830,"deps":[["semver v0.6.0",9778926162762572505]],"local":[{"Precalculated":"0.2.1"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[\"default\"]","target":356893538095437893,"profile":731176819336294830,"deps":[["semver-parser v0.7.0",6177733820198020260]],"local":[{"Precalculated":"0.6.0"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":11743311642726602848,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"0.7.0"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":13503936060867580529,"profile":731176819336294830,"deps":[],"local":[{"Precalculated":"1.0.27"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":0,"features":"","target":0,"profile":0,"deps":[],"local":[{"Precalculated":"1518109789.837756099s (/Users/gav/Core/polkadot/substrate/runtime-io/without_std.rs)"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":12308848387402016909,"profile":731176819336294830,"deps":[["rustc_version v0.2.1",8668969671064323358]],"local":[{"MtimeBased":[[1518113558,689570399],"/Users/gav/Core/polkadot/polkadot/runtime/wasm/target/debug/.fingerprint/substrate-runtime-io-a9866f32f3b51382/dep-build-script-build_script_build-a9866f32f3b51382"]}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":15217767247624158212,"profile":731176819336294830,"deps":[["rustc_version v0.2.1",8668969671064323358]],"local":[{"MtimeBased":[[1518113559,163214299],"/Users/gav/Core/polkadot/polkadot/runtime/wasm/target/debug/.fingerprint/substrate-runtime-std-6fe626a9de5bf134/dep-build-script-build_script_build-6fe626a9de5bf134"]}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":0,"features":"","target":0,"profile":0,"deps":[],"local":[{"Precalculated":"1518109789.840012697s (/Users/gav/Core/polkadot/substrate/runtime-std/without_std.rs)"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":16759311700645620298,"profile":731176819336294830,"deps":[["byteorder v1.2.1",10993048835373230728]],"local":[{"Precalculated":"8dc457899afdaf968ff7f16140b03d1e37b01d71"}],"rustflags":[]}
@@ -0,0 +1 @@
{"rustc":2076919156954903493,"features":"[]","target":6771221677873906921,"profile":731176819336294830,"deps":[["rustc_version v0.2.1",8668969671064323358]],"local":[{"Precalculated":"8dc457899afdaf968ff7f16140b03d1e37b01d71"}],"rustflags":[]}
@@ -0,0 +1 @@
4c01460e12fb5129
@@ -0,0 +1 @@
{"rustc":0,"features":"","target":0,"profile":0,"deps":[],"local":[{"Precalculated":"8dc457899afdaf968ff7f16140b03d1e37b01d71"}],"rustflags":[]}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-7afe3ee0284c8f65</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,815 @@
/// Unroll the given for loop
///
/// Example:
///
/// ```ignore
/// unroll! {
/// for i in 0..5 {
/// println!("Iteration {}", i);
/// }
/// }
/// ```
///
/// will expand into:
///
/// ```ignore
/// { println!("Iteration {}", 0); }
/// { println!("Iteration {}", 1); }
/// { println!("Iteration {}", 2); }
/// { println!("Iteration {}", 3); }
/// { println!("Iteration {}", 4); }
/// ```
#[macro_export]
macro_rules! unroll {
(for $v:ident in 0..0 $c:block) => {};
(for $v:ident in 0..$b:tt {$($c:tt)*}) => {
#[allow(non_upper_case_globals)]
{ unroll!(@$v, 0, $b, {$($c)*}); }
};
(@$v:ident, $a:expr, 0, $c:block) => {
{ const $v: usize = $a; $c }
};
(@$v:ident, $a:expr, 1, $c:block) => {
{ const $v: usize = $a; $c }
};
(@$v:ident, $a:expr, 2, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
};
(@$v:ident, $a:expr, 3, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
};
(@$v:ident, $a:expr, 4, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
};
(@$v:ident, $a:expr, 5, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
};
(@$v:ident, $a:expr, 6, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
};
(@$v:ident, $a:expr, 7, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
};
(@$v:ident, $a:expr, 8, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
};
(@$v:ident, $a:expr, 9, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
};
(@$v:ident, $a:expr, 10, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
};
(@$v:ident, $a:expr, 11, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
{ const $v: usize = $a + 10; $c }
};
(@$v:ident, $a:expr, 12, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
{ const $v: usize = $a + 10; $c }
{ const $v: usize = $a + 11; $c }
};
(@$v:ident, $a:expr, 13, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
{ const $v: usize = $a + 10; $c }
{ const $v: usize = $a + 11; $c }
{ const $v: usize = $a + 12; $c }
};
(@$v:ident, $a:expr, 14, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
{ const $v: usize = $a + 10; $c }
{ const $v: usize = $a + 11; $c }
{ const $v: usize = $a + 12; $c }
{ const $v: usize = $a + 13; $c }
};
(@$v:ident, $a:expr, 15, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
{ const $v: usize = $a + 10; $c }
{ const $v: usize = $a + 11; $c }
{ const $v: usize = $a + 12; $c }
{ const $v: usize = $a + 13; $c }
{ const $v: usize = $a + 14; $c }
};
(@$v:ident, $a:expr, 16, $c:block) => {
{ const $v: usize = $a; $c }
{ const $v: usize = $a + 1; $c }
{ const $v: usize = $a + 2; $c }
{ const $v: usize = $a + 3; $c }
{ const $v: usize = $a + 4; $c }
{ const $v: usize = $a + 5; $c }
{ const $v: usize = $a + 6; $c }
{ const $v: usize = $a + 7; $c }
{ const $v: usize = $a + 8; $c }
{ const $v: usize = $a + 9; $c }
{ const $v: usize = $a + 10; $c }
{ const $v: usize = $a + 11; $c }
{ const $v: usize = $a + 12; $c }
{ const $v: usize = $a + 13; $c }
{ const $v: usize = $a + 14; $c }
{ const $v: usize = $a + 15; $c }
};
(@$v:ident, $a:expr, 17, $c:block) => {
unroll!(@$v, $a, 16, $c);
{ const $v: usize = $a + 16; $c }
};
(@$v:ident, $a:expr, 18, $c:block) => {
unroll!(@$v, $a, 9, $c);
unroll!(@$v, $a + 9, 9, $c);
};
(@$v:ident, $a:expr, 19, $c:block) => {
unroll!(@$v, $a, 18, $c);
{ const $v: usize = $a + 18; $c }
};
(@$v:ident, $a:expr, 20, $c:block) => {
unroll!(@$v, $a, 10, $c);
unroll!(@$v, $a + 10, 10, $c);
};
(@$v:ident, $a:expr, 21, $c:block) => {
unroll!(@$v, $a, 20, $c);
{ const $v: usize = $a + 20; $c }
};
(@$v:ident, $a:expr, 22, $c:block) => {
unroll!(@$v, $a, 11, $c);
unroll!(@$v, $a + 11, 11, $c);
};
(@$v:ident, $a:expr, 23, $c:block) => {
unroll!(@$v, $a, 22, $c);
{ const $v: usize = $a + 22; $c }
};
(@$v:ident, $a:expr, 24, $c:block) => {
unroll!(@$v, $a, 12, $c);
unroll!(@$v, $a + 12, 12, $c);
};
(@$v:ident, $a:expr, 25, $c:block) => {
unroll!(@$v, $a, 24, $c);
{ const $v: usize = $a + 24; $c }
};
(@$v:ident, $a:expr, 26, $c:block) => {
unroll!(@$v, $a, 13, $c);
unroll!(@$v, $a + 13, 13, $c);
};
(@$v:ident, $a:expr, 27, $c:block) => {
unroll!(@$v, $a, 26, $c);
{ const $v: usize = $a + 26; $c }
};
(@$v:ident, $a:expr, 28, $c:block) => {
unroll!(@$v, $a, 14, $c);
unroll!(@$v, $a + 14, 14, $c);
};
(@$v:ident, $a:expr, 29, $c:block) => {
unroll!(@$v, $a, 28, $c);
{ const $v: usize = $a + 28; $c }
};
(@$v:ident, $a:expr, 30, $c:block) => {
unroll!(@$v, $a, 15, $c);
unroll!(@$v, $a + 15, 15, $c);
};
(@$v:ident, $a:expr, 31, $c:block) => {
unroll!(@$v, $a, 30, $c);
{ const $v: usize = $a + 30; $c }
};
(@$v:ident, $a:expr, 32, $c:block) => {
unroll!(@$v, $a, 16, $c);
unroll!(@$v, $a + 16, 16, $c);
};
(@$v:ident, $a:expr, 33, $c:block) => {
unroll!(@$v, $a, 32, $c);
{ const $v: usize = $a + 32; $c }
};
(@$v:ident, $a:expr, 34, $c:block) => {
unroll!(@$v, $a, 17, $c);
unroll!(@$v, $a + 17, 17, $c);
};
(@$v:ident, $a:expr, 35, $c:block) => {
unroll!(@$v, $a, 34, $c);
{ const $v: usize = $a + 34; $c }
};
(@$v:ident, $a:expr, 36, $c:block) => {
unroll!(@$v, $a, 18, $c);
unroll!(@$v, $a + 18, 18, $c);
};
(@$v:ident, $a:expr, 37, $c:block) => {
unroll!(@$v, $a, 36, $c);
{ const $v: usize = $a + 36; $c }
};
(@$v:ident, $a:expr, 38, $c:block) => {
unroll!(@$v, $a, 19, $c);
unroll!(@$v, $a + 19, 19, $c);
};
(@$v:ident, $a:expr, 39, $c:block) => {
unroll!(@$v, $a, 38, $c);
{ const $v: usize = $a + 38; $c }
};
(@$v:ident, $a:expr, 40, $c:block) => {
unroll!(@$v, $a, 20, $c);
unroll!(@$v, $a + 20, 20, $c);
};
(@$v:ident, $a:expr, 41, $c:block) => {
unroll!(@$v, $a, 40, $c);
{ const $v: usize = $a + 40; $c }
};
(@$v:ident, $a:expr, 42, $c:block) => {
unroll!(@$v, $a, 21, $c);
unroll!(@$v, $a + 21, 21, $c);
};
(@$v:ident, $a:expr, 43, $c:block) => {
unroll!(@$v, $a, 42, $c);
{ const $v: usize = $a + 42; $c }
};
(@$v:ident, $a:expr, 44, $c:block) => {
unroll!(@$v, $a, 22, $c);
unroll!(@$v, $a + 22, 22, $c);
};
(@$v:ident, $a:expr, 45, $c:block) => {
unroll!(@$v, $a, 44, $c);
{ const $v: usize = $a + 44; $c }
};
(@$v:ident, $a:expr, 46, $c:block) => {
unroll!(@$v, $a, 23, $c);
unroll!(@$v, $a + 23, 23, $c);
};
(@$v:ident, $a:expr, 47, $c:block) => {
unroll!(@$v, $a, 46, $c);
{ const $v: usize = $a + 46; $c }
};
(@$v:ident, $a:expr, 48, $c:block) => {
unroll!(@$v, $a, 24, $c);
unroll!(@$v, $a + 24, 24, $c);
};
(@$v:ident, $a:expr, 49, $c:block) => {
unroll!(@$v, $a, 48, $c);
{ const $v: usize = $a + 48; $c }
};
(@$v:ident, $a:expr, 50, $c:block) => {
unroll!(@$v, $a, 25, $c);
unroll!(@$v, $a + 25, 25, $c);
};
(@$v:ident, $a:expr, 51, $c:block) => {
unroll!(@$v, $a, 50, $c);
{ const $v: usize = $a + 50; $c }
};
(@$v:ident, $a:expr, 52, $c:block) => {
unroll!(@$v, $a, 26, $c);
unroll!(@$v, $a + 26, 26, $c);
};
(@$v:ident, $a:expr, 53, $c:block) => {
unroll!(@$v, $a, 52, $c);
{ const $v: usize = $a + 52; $c }
};
(@$v:ident, $a:expr, 54, $c:block) => {
unroll!(@$v, $a, 27, $c);
unroll!(@$v, $a + 27, 27, $c);
};
(@$v:ident, $a:expr, 55, $c:block) => {
unroll!(@$v, $a, 54, $c);
{ const $v: usize = $a + 54; $c }
};
(@$v:ident, $a:expr, 56, $c:block) => {
unroll!(@$v, $a, 28, $c);
unroll!(@$v, $a + 28, 28, $c);
};
(@$v:ident, $a:expr, 57, $c:block) => {
unroll!(@$v, $a, 56, $c);
{ const $v: usize = $a + 56; $c }
};
(@$v:ident, $a:expr, 58, $c:block) => {
unroll!(@$v, $a, 29, $c);
unroll!(@$v, $a + 29, 29, $c);
};
(@$v:ident, $a:expr, 59, $c:block) => {
unroll!(@$v, $a, 58, $c);
{ const $v: usize = $a + 58; $c }
};
(@$v:ident, $a:expr, 60, $c:block) => {
unroll!(@$v, $a, 30, $c);
unroll!(@$v, $a + 30, 30, $c);
};
(@$v:ident, $a:expr, 61, $c:block) => {
unroll!(@$v, $a, 60, $c);
{ const $v: usize = $a + 60; $c }
};
(@$v:ident, $a:expr, 62, $c:block) => {
unroll!(@$v, $a, 31, $c);
unroll!(@$v, $a + 31, 31, $c);
};
(@$v:ident, $a:expr, 63, $c:block) => {
unroll!(@$v, $a, 62, $c);
{ const $v: usize = $a + 62; $c }
};
(@$v:ident, $a:expr, 64, $c:block) => {
unroll!(@$v, $a, 32, $c);
unroll!(@$v, $a + 32, 32, $c);
};
(@$v:ident, $a:expr, 65, $c:block) => {
unroll!(@$v, $a, 64, $c);
{ const $v: usize = $a + 64; $c }
};
(@$v:ident, $a:expr, 66, $c:block) => {
unroll!(@$v, $a, 33, $c);
unroll!(@$v, $a + 33, 33, $c);
};
(@$v:ident, $a:expr, 67, $c:block) => {
unroll!(@$v, $a, 66, $c);
{ const $v: usize = $a + 66; $c }
};
(@$v:ident, $a:expr, 68, $c:block) => {
unroll!(@$v, $a, 34, $c);
unroll!(@$v, $a + 34, 34, $c);
};
(@$v:ident, $a:expr, 69, $c:block) => {
unroll!(@$v, $a, 68, $c);
{ const $v: usize = $a + 68; $c }
};
(@$v:ident, $a:expr, 70, $c:block) => {
unroll!(@$v, $a, 35, $c);
unroll!(@$v, $a + 35, 35, $c);
};
(@$v:ident, $a:expr, 71, $c:block) => {
unroll!(@$v, $a, 70, $c);
{ const $v: usize = $a + 70; $c }
};
(@$v:ident, $a:expr, 72, $c:block) => {
unroll!(@$v, $a, 36, $c);
unroll!(@$v, $a + 36, 36, $c);
};
(@$v:ident, $a:expr, 73, $c:block) => {
unroll!(@$v, $a, 72, $c);
{ const $v: usize = $a + 72; $c }
};
(@$v:ident, $a:expr, 74, $c:block) => {
unroll!(@$v, $a, 37, $c);
unroll!(@$v, $a + 37, 37, $c);
};
(@$v:ident, $a:expr, 75, $c:block) => {
unroll!(@$v, $a, 74, $c);
{ const $v: usize = $a + 74; $c }
};
(@$v:ident, $a:expr, 76, $c:block) => {
unroll!(@$v, $a, 38, $c);
unroll!(@$v, $a + 38, 38, $c);
};
(@$v:ident, $a:expr, 77, $c:block) => {
unroll!(@$v, $a, 76, $c);
{ const $v: usize = $a + 76; $c }
};
(@$v:ident, $a:expr, 78, $c:block) => {
unroll!(@$v, $a, 39, $c);
unroll!(@$v, $a + 39, 39, $c);
};
(@$v:ident, $a:expr, 79, $c:block) => {
unroll!(@$v, $a, 78, $c);
{ const $v: usize = $a + 78; $c }
};
(@$v:ident, $a:expr, 80, $c:block) => {
unroll!(@$v, $a, 40, $c);
unroll!(@$v, $a + 40, 40, $c);
};
(@$v:ident, $a:expr, 81, $c:block) => {
unroll!(@$v, $a, 80, $c);
{ const $v: usize = $a + 80; $c }
};
(@$v:ident, $a:expr, 82, $c:block) => {
unroll!(@$v, $a, 41, $c);
unroll!(@$v, $a + 41, 41, $c);
};
(@$v:ident, $a:expr, 83, $c:block) => {
unroll!(@$v, $a, 82, $c);
{ const $v: usize = $a + 82; $c }
};
(@$v:ident, $a:expr, 84, $c:block) => {
unroll!(@$v, $a, 42, $c);
unroll!(@$v, $a + 42, 42, $c);
};
(@$v:ident, $a:expr, 85, $c:block) => {
unroll!(@$v, $a, 84, $c);
{ const $v: usize = $a + 84; $c }
};
(@$v:ident, $a:expr, 86, $c:block) => {
unroll!(@$v, $a, 43, $c);
unroll!(@$v, $a + 43, 43, $c);
};
(@$v:ident, $a:expr, 87, $c:block) => {
unroll!(@$v, $a, 86, $c);
{ const $v: usize = $a + 86; $c }
};
(@$v:ident, $a:expr, 88, $c:block) => {
unroll!(@$v, $a, 44, $c);
unroll!(@$v, $a + 44, 44, $c);
};
(@$v:ident, $a:expr, 89, $c:block) => {
unroll!(@$v, $a, 88, $c);
{ const $v: usize = $a + 88; $c }
};
(@$v:ident, $a:expr, 90, $c:block) => {
unroll!(@$v, $a, 45, $c);
unroll!(@$v, $a + 45, 45, $c);
};
(@$v:ident, $a:expr, 91, $c:block) => {
unroll!(@$v, $a, 90, $c);
{ const $v: usize = $a + 90; $c }
};
(@$v:ident, $a:expr, 92, $c:block) => {
unroll!(@$v, $a, 46, $c);
unroll!(@$v, $a + 46, 46, $c);
};
(@$v:ident, $a:expr, 93, $c:block) => {
unroll!(@$v, $a, 92, $c);
{ const $v: usize = $a + 92; $c }
};
(@$v:ident, $a:expr, 94, $c:block) => {
unroll!(@$v, $a, 47, $c);
unroll!(@$v, $a + 47, 47, $c);
};
(@$v:ident, $a:expr, 95, $c:block) => {
unroll!(@$v, $a, 94, $c);
{ const $v: usize = $a + 94; $c }
};
(@$v:ident, $a:expr, 96, $c:block) => {
unroll!(@$v, $a, 48, $c);
unroll!(@$v, $a + 48, 48, $c);
};
(@$v:ident, $a:expr, 97, $c:block) => {
unroll!(@$v, $a, 96, $c);
{ const $v: usize = $a + 96; $c }
};
(@$v:ident, $a:expr, 98, $c:block) => {
unroll!(@$v, $a, 49, $c);
unroll!(@$v, $a + 49, 49, $c);
};
(@$v:ident, $a:expr, 99, $c:block) => {
unroll!(@$v, $a, 98, $c);
{ const $v: usize = $a + 98; $c }
};
(@$v:ident, $a:expr, 100, $c:block) => {
unroll!(@$v, $a, 50, $c);
unroll!(@$v, $a + 50, 50, $c);
};
(@$v:ident, $a:expr, 101, $c:block) => {
unroll!(@$v, $a, 100, $c);
{ const $v: usize = $a + 100; $c }
};
(@$v:ident, $a:expr, 102, $c:block) => {
unroll!(@$v, $a, 51, $c);
unroll!(@$v, $a + 51, 51, $c);
};
(@$v:ident, $a:expr, 103, $c:block) => {
unroll!(@$v, $a, 102, $c);
{ const $v: usize = $a + 102; $c }
};
(@$v:ident, $a:expr, 104, $c:block) => {
unroll!(@$v, $a, 52, $c);
unroll!(@$v, $a + 52, 52, $c);
};
(@$v:ident, $a:expr, 105, $c:block) => {
unroll!(@$v, $a, 104, $c);
{ const $v: usize = $a + 104; $c }
};
(@$v:ident, $a:expr, 106, $c:block) => {
unroll!(@$v, $a, 53, $c);
unroll!(@$v, $a + 53, 53, $c);
};
(@$v:ident, $a:expr, 107, $c:block) => {
unroll!(@$v, $a, 106, $c);
{ const $v: usize = $a + 106; $c }
};
(@$v:ident, $a:expr, 108, $c:block) => {
unroll!(@$v, $a, 54, $c);
unroll!(@$v, $a + 54, 54, $c);
};
(@$v:ident, $a:expr, 109, $c:block) => {
unroll!(@$v, $a, 108, $c);
{ const $v: usize = $a + 108; $c }
};
(@$v:ident, $a:expr, 110, $c:block) => {
unroll!(@$v, $a, 55, $c);
unroll!(@$v, $a + 55, 55, $c);
};
(@$v:ident, $a:expr, 111, $c:block) => {
unroll!(@$v, $a, 110, $c);
{ const $v: usize = $a + 110; $c }
};
(@$v:ident, $a:expr, 112, $c:block) => {
unroll!(@$v, $a, 56, $c);
unroll!(@$v, $a + 56, 56, $c);
};
(@$v:ident, $a:expr, 113, $c:block) => {
unroll!(@$v, $a, 112, $c);
{ const $v: usize = $a + 112; $c }
};
(@$v:ident, $a:expr, 114, $c:block) => {
unroll!(@$v, $a, 57, $c);
unroll!(@$v, $a + 57, 57, $c);
};
(@$v:ident, $a:expr, 115, $c:block) => {
unroll!(@$v, $a, 114, $c);
{ const $v: usize = $a + 114; $c }
};
(@$v:ident, $a:expr, 116, $c:block) => {
unroll!(@$v, $a, 58, $c);
unroll!(@$v, $a + 58, 58, $c);
};
(@$v:ident, $a:expr, 117, $c:block) => {
unroll!(@$v, $a, 116, $c);
{ const $v: usize = $a + 116; $c }
};
(@$v:ident, $a:expr, 118, $c:block) => {
unroll!(@$v, $a, 59, $c);
unroll!(@$v, $a + 59, 59, $c);
};
(@$v:ident, $a:expr, 119, $c:block) => {
unroll!(@$v, $a, 118, $c);
{ const $v: usize = $a + 118; $c }
};
(@$v:ident, $a:expr, 120, $c:block) => {
unroll!(@$v, $a, 60, $c);
unroll!(@$v, $a + 60, 60, $c);
};
(@$v:ident, $a:expr, 121, $c:block) => {
unroll!(@$v, $a, 120, $c);
{ const $v: usize = $a + 120; $c }
};
(@$v:ident, $a:expr, 122, $c:block) => {
unroll!(@$v, $a, 61, $c);
unroll!(@$v, $a + 61, 61, $c);
};
(@$v:ident, $a:expr, 123, $c:block) => {
unroll!(@$v, $a, 122, $c);
{ const $v: usize = $a + 122; $c }
};
(@$v:ident, $a:expr, 124, $c:block) => {
unroll!(@$v, $a, 62, $c);
unroll!(@$v, $a + 62, 62, $c);
};
(@$v:ident, $a:expr, 125, $c:block) => {
unroll!(@$v, $a, 124, $c);
{ const $v: usize = $a + 124; $c }
};
(@$v:ident, $a:expr, 126, $c:block) => {
unroll!(@$v, $a, 63, $c);
unroll!(@$v, $a + 63, 63, $c);
};
(@$v:ident, $a:expr, 127, $c:block) => {
unroll!(@$v, $a, 126, $c);
{ const $v: usize = $a + 126; $c }
};
(@$v:ident, $a:expr, 128, $c:block) => {
unroll!(@$v, $a, 64, $c);
unroll!(@$v, $a + 64, 64, $c);
};
}
#[cfg(test)]
mod tests {
#[test]
fn test_all() {
{
let a: Vec<usize> = vec![];
unroll! {
for i in 0..0 {
a.push(i);
}
}
assert_eq!(a, (0..0).collect::<Vec<usize>>());
}
{
let mut a: Vec<usize> = vec![];
unroll! {
for i in 0..1 {
a.push(i);
}
}
assert_eq!(a, (0..1).collect::<Vec<usize>>());
}
{
let mut a: Vec<usize> = vec![];
unroll! {
for i in 0..128 {
a.push(i);
}
}
assert_eq!(a, (0..128).collect::<Vec<usize>>());
}
}
}
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-d447833ce9aea37c</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-a9866f32f3b51382</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-6fe626a9de5bf134</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.build_script_build-07239eb1916014b7</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

Some files were not shown because too many files have changed in this diff Show More