Skip to content

Commit 21acdc1

Browse files
committed
bug fix sfmt_to_res53, and add .gitattributes
1 parent 00837f3 commit 21acdc1

7 files changed

+8
-3
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
html/* linguist-documentation

CHANGE-LOG.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
ver 1.5
2+
-------
3+
bug fix to_res53 reported by Akio Takahashi.
4+
15
ver 1.4.1
26
-------
37
fix MSC compile error reported by Dirk Steenpass.

Makefile.me

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ FILES = SFMT.h \
3939
README.txt \
4040
html
4141

42-
VERSION = 1.4.1.1
42+
VERSION = 1.5
4343
DIR = SFMT-src-${VERSION}
4444

4545
doc:

README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
=================================================================
2-
SFMT ver. 1.4
2+
SFMT ver. 1.5
33
SIMD oriented Fast Mersenne Twister(SFMT)
44

55
Mutsuo Saito (Hiroshima University) and

SFMT-src-1.5.tar.gz

237 KB
Binary file not shown.

SFMT-src-1.5.zip

276 KB
Binary file not shown.

SFMT.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ inline static double sfmt_genrand_real3(sfmt_t * sfmt)
256256
*/
257257
inline static double sfmt_to_res53(uint64_t v)
258258
{
259-
return v * (1.0/18446744073709551616.0);
259+
return (v >> 11) * (1.0/9007199254740992.0);
260260
}
261261

262262
/**

0 commit comments

Comments
 (0)