Skip to content

Commit

Permalink
Merge branch 'master' into param_support
Browse files Browse the repository at this point in the history
  • Loading branch information
termoshtt committed Sep 6, 2021
2 parents c44d2b0 + 69caa63 commit ebe0726
Show file tree
Hide file tree
Showing 28 changed files with 100,138 additions and 337 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
check/*.txt binary
42 changes: 42 additions & 0 deletions .github/workflows/rust.yml
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
15 changes: 15 additions & 0 deletions CHANGELOG.md
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
11 changes: 7 additions & 4 deletions Cargo.toml
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"

Expand All @@ -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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sfmt
=====

[![Crate](http://meritbadge.herokuapp.com/sfmt)](https://crates.io/crates/sfmt)
[![Crate](https://img.shields.io/crates/v/sfmt.svg)](https://crates.io/crates/sfmt)
[![docs.rs](https://docs.rs/sfmt/badge.svg)](https://docs.rs/sfmt)
[![Build Status](https://dev.azure.com/rust-math/sfmt/_apis/build/status/rust-math.sfmt?branchName=master)](https://dev.azure.com/rust-math/sfmt/_build/latest?definitionId=6&branchName=master)
[![DOI](https://zenodo.org/badge/118722822.svg)](https://zenodo.org/badge/latestdoi/118722822)

Rust implementation of [SIMD-oriented Fast Mersenne Twister (SFMT)] interface using x86-SIMD in `std::arch`.
This is pure rust re-implementation, and tested on Windows/macOS/Linux.
Expand Down
45 changes: 0 additions & 45 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion check/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/SFMT-src-1.5.1/
SFMT-src-*/
a.out
31 changes: 31 additions & 0 deletions check/Makefile
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)))
1 change: 0 additions & 1 deletion check/SFMT_19937.txt

This file was deleted.

14 changes: 0 additions & 14 deletions check/check.sh

This file was deleted.

16 changes: 0 additions & 16 deletions check/init.c

This file was deleted.

Loading

0 comments on commit ebe0726

Please sign in to comment.