General cleanup (#525)

* Cleans up and trims the overly large builtins file by ~1600 lines
* Properly propagate inline assembler-like argument types
* Use https in examples
* Reformat README
This commit is contained in:
Daniel Wirtz
2019-03-08 14:24:48 +01:00
committed by GitHub
parent 5f547131ab
commit 252b843c4b
15 changed files with 2516 additions and 4170 deletions

View File

@ -274,6 +274,12 @@ sizeof<isize>();
assert(sizeof<f32>() == 4);
assert(sizeof<f64>() == 8);
assert(alignof<u8>() == 0);
assert(alignof<u16>() == 1);
assert(alignof<u32>() == 2);
assert(alignof<u64>() == 3);
assert(alignof<bool>() == 0);
class Foo<T> { a: T; b: T; }
assert(offsetof<Foo<i32>>("a") == 0);
assert(offsetof<Foo<i32>>("b") == 4);