-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into param_support
- Loading branch information
Showing
28 changed files
with
100,138 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
check/*.txt binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: rust | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: {} | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
|
||
check-format: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: -- --check | ||
|
||
doc: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: doc | ||
args: --no-deps | ||
|
||
clippy: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Unreleased | ||
----------- | ||
|
||
Maintenance | ||
------------ | ||
- Switch CI from Azure Pipeline to GitHub Actions https://github.com/rust-math/sfmt/pull/33 | ||
- Fix badges https://github.com/rust-math/sfmt/pull/31 | ||
|
||
0.7.0 - 2021/9/4 | ||
---------------- | ||
|
||
Updated dependencies | ||
--------------------- | ||
- rand 0.8 | ||
- rand_core 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "sfmt" | ||
version = "0.6.0" | ||
version = "0.7.0" | ||
authors = ["Toshiki Teramura <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -18,9 +18,12 @@ default = ["thread_rng"] | |
thread_rng = ["rand/getrandom"] | ||
|
||
[dependencies] | ||
rand_core = "0.6" | ||
rand = {version = "0.8", optional = true} | ||
rand = { version = "0.8.4", optional = true } | ||
rand_core = "0.6.3" | ||
|
||
[dev-dependencies] | ||
rand_xorshift = "0.3.0" | ||
rand_core = {version = "0.6", features=["getrandom"]} | ||
rand_core = { version = "0.6", features=["getrandom"] } | ||
|
||
[package.metadata.release] | ||
no-dev-version = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/SFMT-src-1.5.1/ | ||
SFMT-src-*/ | ||
a.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
SFMT_VERSION := 1.5.1 | ||
SFMT_DIR := SFMT-src-$(SFMT_VERSION) | ||
SFMT_ARCHIVE := $(SFMT_DIR).tar.gz | ||
|
||
CXX := g++ | ||
CXX_FLAGS := -O2 -msse2 -DHAVE_SSE2 | ||
|
||
MEXPS := 607 1279 2281 4253 11213 19937 44497 86243 132049 216091 | ||
U64_REFERENCES := $(foreach MEXP,$(MEXPS),u64_$(MEXP).txt) | ||
|
||
all: $(U64_REFERENCES) | ||
|
||
$(SFMT_DIR)/SFMT.c: | ||
wget http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/$(SFMT_ARCHIVE) | ||
tar xf $(SFMT_ARCHIVE) | ||
rm -f $(SFMT_ARCHIVE) | ||
|
||
clean: | ||
rm -rf $(SFMT_DIR) | ||
rm -f $(U64_REFERENCES) | ||
|
||
define generate_u64 | ||
$(CXX) $(CXX_FLAGS) -DSFMT_MEXP=$(1) $^ | ||
./a.out > u64_$(1).txt | ||
rm a.out | ||
|
||
endef | ||
|
||
$(U64_REFERENCES): sample.cpp $(SFMT_DIR)/SFMT.c | ||
$(foreach MEXP,$(MEXPS),$(call generate_u64,$(MEXP))) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.