Commit Graph

9 Commits

Author SHA1 Message Date
Kevin Kelley 339e6b664d change in format for link attribute 2021-03-30 11:17:00 +08:00
Demi M. Obenour fcb709b789 Fix install and run scripts 2019-01-04 14:20:18 -05:00
Demi M. Obenour f949219a32
Switch to Rust 2018 2018-12-07 15:35:26 -05:00
Demi M. Obenour af89640996
Clean up FFI and fork gmp-rs
Previously, our code had used unsafe pointer casts for FFI, so that we
could pass pointers to `#[repr(Rust)]` structs across the FFI boundary.
This is a bad idea: while it works now, it could break at any time.

Instead, fork `gmp-rs` and make `gmp::mpz::Mpz` `#[repr(transparent)]`.
That avoids the problem, and also allows for massive cleanups in the FFI
code.
2018-12-06 14:05:17 -05:00
Demi M. Obenour 975ba061e3
Fix call to __gmp_set_memory_functions in non-Unix build
Also fix unused import warning.
2018-12-05 16:45:02 -05:00
Demi M. Obenour a1057acf5f
More optimizations 2018-12-05 15:23:59 -05:00
Demi M. Obenour 91c1ee3c6e
Improve docs. Make some asserts debug-only. 2018-12-04 13:09:03 -05:00
Demi M. Obenour f03f204104
Add license header to vdf-competition/src/main.rs 2018-12-03 20:55:20 -05:00
Demi M. Obenour 0b5d919dce
Speed up benchmarks
This adds a (very reduced) benchmark program that is slightly faster
than the C++ sample implementation.
2018-12-03 15:18:10 -05:00