Browse Source

readme asm instructions

master
jon-chuang 4 years ago
parent
commit
60ebc0d907
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      README.md

+ 12
- 2
README.md

@ -64,9 +64,9 @@ cargo build --release
This library comes with unit tests for each of the provided crates. Run the tests with: This library comes with unit tests for each of the provided crates. Run the tests with:
```bash ```bash
cargo test cargo test
```
```
Lastly, this library comes with benchmarks for the following crates:
This library comes with benchmarks for the following crates:
- [`algebra`](algebra) - [`algebra`](algebra)
- [`dpc`](dpc) - [`dpc`](dpc)
@ -76,6 +76,16 @@ These benchmarks require the nightly Rust toolchain; to install this, run `rustu
cargo +nightly bench cargo +nightly bench
``` ```
To make use of `adcxq`, `adoxq` and `mulxq` available on most modern `x86_64` platforms (at least starting from Haswell):
```bash
RUSTFLAGS="--emit=asm -C target-feature=+bmi2,+adx" cargo +nightly test/build/bench --features asm
```
To run with multiple features, make sure to double quote the features. E.g.
```bash
RUSTFLAGS="--emit=asm -C target-feature=+bmi2,+adx" cargo +nightly test --features "asm bls12_381"
```
## License ## License
ZEXE is licensed under either of the following licenses, at your discretion. ZEXE is licensed under either of the following licenses, at your discretion.

Loading…
Cancel
Save