Showing with 774 additions and 5 deletions.
  1. +14 −0 changelog.dd
  2. +4 −0 index.d
  3. +1 −1 posix.mak
  4. +751 −0 std/digest/murmurhash.d
  5. +2 −2 win32.mak
  6. +2 −2 win64.mak
14 changes: 14 additions & 0 deletions changelog.dd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ $(COMMENT Pending changelog for 2.072. This will get copied to dlang.org and
)

$(BUGSTITLE Library Changes,
$(LI $(RELATIVE_LINK2 std-digest-murmurhash, Implementation of MurmurHash
digest.))
$(LI $(RELATIVE_LINK2 process, Process creation in `std.process` was sped up
on Posix.))
$(LI $(RELATIVE_LINK2 std-algorithm-iteration-cumulativeFold,
Expand Down Expand Up @@ -51,6 +53,18 @@ $(BUGSTITLE Library Changes,

$(BUGSTITLE Library Changes,

$(LI $(LNAME2 std-digest-murmurhash, Implementation of $(XREF std.digest, murmurhash).)
$(P MurmurHash is a non-cryptographic hash function suitable for general
hash-based lookup. It is optimized for x86 architectures.
)
------
// Computing the 32-bits hash value of an int array using the convenient digest template.
import std.digest.murmurhash;

ubyte[4] hashed = digest!MurmurHash3_32_opt32([1, 2, 3, 4]);
------
)

$(LI $(LNAME2 process, Process creation in `std.process` was sped up on Posix.)
$(P Previously, Posix systems would attempt to close every file descriptor
from 3 to the maximum file descriptor number if `inheritFDs` was not
Expand Down
4 changes: 4 additions & 0 deletions index.d
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ $(BOOKTABLE ,
$(TDNW $(LINK2 std_digest_md.html, std.digest.md))
$(TD Compute MD5 hash of arbitrary data.)
)
$(TR
$(TDNW $(LINK2 std_digest_murmurhash.html, std.digest.murmurhash))
$(TD Compute MurmurHash of arbitrary data.)
)
$(TR
$(TDNW $(LINK2 std_digest_ripemd.html, std.digest.ripemd))
$(TD Compute RIPEMD-160 hash of arbitrary data.)
Expand Down
2 changes: 1 addition & 1 deletion posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ PACKAGE_std_experimental = typecons
PACKAGE_std_algorithm = comparison iteration mutation package searching setops \
sorting
PACKAGE_std_container = array binaryheap dlist package rbtree slist util
PACKAGE_std_digest = crc digest hmac md ripemd sha
PACKAGE_std_digest = crc digest hmac md murmurhash ripemd sha
PACKAGE_std_experimental_logger = core filelogger \
nulllogger multilogger package
PACKAGE_std_experimental_allocator = \
Expand Down
Loading