Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

add @nogc to bytesHash #1624

Merged
merged 1 commit into from
Aug 7, 2016
Merged

add @nogc to bytesHash #1624

merged 1 commit into from
Aug 7, 2016

Conversation

aG0aep6G
Copy link
Contributor

@aG0aep6G aG0aep6G commented Aug 7, 2016

See http://forum.dlang.org/post/gmeowrdivjpjhezbdror@forum.dlang.org.

By the way, bytesHash should not be @trusted. It takes pointer and length separately.

@dnadlinger
Copy link
Member

Auto-merge toggled on

@codecov-io
Copy link

Current coverage is 73.93% (diff: 100%)

Merging #1624 into master will not change coverage

@@             master      #1624   diff @@
==========================================
  Files           133        133          
  Lines         16980      16980          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          12555      12555          
  Misses         4425       4425          
  Partials          0          0          

Powered by Codecov. Last update c788993...0c5030f

size_t bytesHash(const(void)* buf, size_t len, size_t seed = 0)
{
static uint rotl32(uint n)(in uint x) pure nothrow @safe
static uint rotl32(uint n)(in uint x) pure nothrow @safe @nogc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function already exists in std.core.bitop

@dnadlinger dnadlinger merged commit 81a50c2 into dlang:master Aug 7, 2016
@aG0aep6G aG0aep6G deleted the nogc-bytesHash branch August 7, 2016 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants