summaryrefslogtreecommitdiff
path: root/src/pkg/compress/flate/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/compress/flate/token.go')
-rw-r--r--src/pkg/compress/flate/token.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/compress/flate/token.go b/src/pkg/compress/flate/token.go
index 5d4bcefaf..139e1d0da 100644
--- a/src/pkg/compress/flate/token.go
+++ b/src/pkg/compress/flate/token.go
@@ -9,10 +9,10 @@ const (
// 8 bits: xlength = length - MIN_MATCH_LENGTH
// 22 bits xoffset = offset - MIN_OFFSET_SIZE, or literal
lengthShift = 22;
- offsetMask = 1 << lengthShift - 1;
- typeMask = 3<<30;
- literalType = 0<<30;
- matchType = 1<<30;
+ offsetMask = 1<<lengthShift - 1;
+ typeMask = 3 << 30;
+ literalType = 0 << 30;
+ matchType = 1 << 30;
)
// The length code for length X (MIN_MATCH_LENGTH <= X <= MAX_MATCH_LENGTH)
@@ -72,11 +72,11 @@ func literalToken(literal uint32) token { return token(literalType + literal) }
// Convert a < xlength, xoffset > pair into a match token.
func matchToken(xlength uint32, xoffset uint32) token {
- return token(matchType + xlength << lengthShift + xoffset)
+ return token(matchType + xlength<<lengthShift + xoffset)
}
// Returns the type of a token
-func (t token) typ() uint32 { return uint32(t)&typeMask }
+func (t token) typ() uint32 { return uint32(t) & typeMask }
// Returns the literal of a literal token
func (t token) literal() uint32 { return uint32(t - literalType) }