We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29d86e8 commit 7e234b5Copy full SHA for 7e234b5
src/Util.php
@@ -75,15 +75,13 @@ public static function hash( $s ) {
75
// Do a 32-bit sum
76
// Inlined here for speed
77
$sum = ( $h & 0x3fffffff ) + ( $h5 & 0x3fffffff );
78
- $h =
79
- (
80
- ( $sum & 0x40000000 ? 1 : 0 )
81
- + ( $h & 0x80000000 ? 2 : 0 )
82
- + ( $h & 0x40000000 ? 1 : 0 )
83
- + ( $h5 & 0x80000000 ? 2 : 0 )
84
- + ( $h5 & 0x40000000 ? 1 : 0 )
85
- ) << 30
86
- | ( $sum & 0x3fffffff );
+ $h = (
+ ( $sum & 0x40000000 ? 1 : 0 )
+ + ( $h & 0x80000000 ? 2 : 0 )
+ + ( $h & 0x40000000 ? 1 : 0 )
+ + ( $h5 & 0x80000000 ? 2 : 0 )
+ + ( $h5 & 0x40000000 ? 1 : 0 )
+ ) << 30 | ( $sum & 0x3fffffff );
87
$h ^= ord( $s[$i] );
88
$h &= 0xffffffff;
89
}
0 commit comments