Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 12223
b: refs/heads/master
c: 2b3b6d0
h: refs/heads/master
i:
  12221: 9e808e1
  12219: 659b61f
  12215: 99f0c65
  12207: a4e7cb1
  12191: 8b516ee
  12159: c81bf7b
v: v3
  • Loading branch information
Nathan Scott committed Nov 2, 2005
1 parent 1569f5a commit c054f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cfcbbbd089eadcaa86abb2c0f352e1ab23e16f72
refs/heads/master: 2b3b6d07f760c61ec0a5e5174d3511abc044b8ea
14 changes: 1 addition & 13 deletions trunk/fs/xfs/xfs_da_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1592,15 +1592,6 @@ xfs_da_hashname(const uchar_t *name, int namelen)
{
xfs_dahash_t hash;

#ifdef SLOWVERSION
/*
* This is the old one-byte-at-a-time version.
*/
for (hash = 0; namelen > 0; namelen--)
hash = *name++ ^ rol32(hash, 7);

return(hash);
#else
/*
* Do four characters at a time as long as we can.
*/
Expand All @@ -1619,12 +1610,9 @@ xfs_da_hashname(const uchar_t *name, int namelen)
return (name[0] << 7) ^ (name[1] << 0) ^ rol32(hash, 7 * 2);
case 1:
return (name[0] << 0) ^ rol32(hash, 7 * 1);
case 0:
default: /* case 0: */
return hash;
}
/* NOTREACHED */
#endif
return 0; /* keep gcc happy */
}

/*
Expand Down

0 comments on commit c054f34

Please sign in to comment.