Skip to content

Commit

Permalink
bug fix sfmt_to_res53, and add .gitattributes
Browse files Browse the repository at this point in the history
  • Loading branch information
MSaito committed Feb 7, 2017
1 parent 00837f3 commit 21acdc1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
html/* linguist-documentation
4 changes: 4 additions & 0 deletions CHANGE-LOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ver 1.5
-------
bug fix to_res53 reported by Akio Takahashi.

ver 1.4.1
-------
fix MSC compile error reported by Dirk Steenpass.
Expand Down
2 changes: 1 addition & 1 deletion Makefile.me
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ FILES = SFMT.h \
README.txt \
html

VERSION = 1.4.1.1
VERSION = 1.5
DIR = SFMT-src-${VERSION}

doc:
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=================================================================
SFMT ver. 1.4
SFMT ver. 1.5
SIMD oriented Fast Mersenne Twister(SFMT)

Mutsuo Saito (Hiroshima University) and
Expand Down
Binary file added SFMT-src-1.5.tar.gz
Binary file not shown.
Binary file added SFMT-src-1.5.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion SFMT.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ inline static double sfmt_genrand_real3(sfmt_t * sfmt)
*/
inline static double sfmt_to_res53(uint64_t v)
{
return v * (1.0/18446744073709551616.0);
return (v >> 11) * (1.0/9007199254740992.0);
}

/**
Expand Down

0 comments on commit 21acdc1

Please sign in to comment.