Skip to content

Commit

Permalink
change FVN hash function to the FVN-1a variant
Browse files Browse the repository at this point in the history
  • Loading branch information
tedhorst committed Mar 7, 2014
1 parent 28e7631 commit 0bdd31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/util/nodemap.rs
Expand Up @@ -118,8 +118,8 @@ impl Writer for FnvState {
fn write(&mut self, bytes: &[u8]) -> io::IoResult<()> {
let FnvState(mut hash) = *self;
for byte in bytes.iter() {
hash = hash * 0x100000001b3;
hash = hash ^ (*byte as u64);
hash = hash * 0x100000001b3;
}
*self = FnvState(hash);
Ok(())
Expand Down

5 comments on commit 0bdd31c

@bors
Copy link
Contributor

@bors bors commented on 0bdd31c Mar 7, 2014

Choose a reason for hiding this comment

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

saw approval from huonw
at tedhorst@0bdd31c

@bors
Copy link
Contributor

@bors bors commented on 0bdd31c Mar 7, 2014

Choose a reason for hiding this comment

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

merging tedhorst/rust/master = 0bdd31c into auto

@bors
Copy link
Contributor

@bors bors commented on 0bdd31c Mar 7, 2014

Choose a reason for hiding this comment

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

tedhorst/rust/master = 0bdd31c merged ok, testing candidate = 85ab68e

@bors
Copy link
Contributor

@bors bors commented on 0bdd31c Mar 7, 2014

Choose a reason for hiding this comment

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

@bors
Copy link
Contributor

@bors bors commented on 0bdd31c Mar 7, 2014

Choose a reason for hiding this comment

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

fast-forwarding master to auto = 85ab68e

Please sign in to comment.