Use macros for more division/array checks (#244)

* Use macros for more division/array checks

This commit moves over more array accesses to the `i!` macro to avoid
bounds checks when debug assertions are disabled. This is surfaced from
rust-lang/compiler-builtins#360 where recent changes in codegen units
has caused some bounds checks to not get elided in release mode. This
also adds a `div!` macro to work around rust-lang/rust#72751.

* Don't test/bench our shim crate

It's not intended to run all our tests
This commit is contained in:
Alex Crichton
2020-05-29 14:16:51 -05:00
committed by GitHub
parent 3d729b7a85
commit fe396e00b7
12 changed files with 53 additions and 35 deletions
@@ -3,4 +3,7 @@ name = "cb"
version = "0.1.0"
authors = ["Jorge Aparicio <jorge@japaric.io>"]
[dependencies]
[lib]
test = false
bench = false