Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / libgo / go / hash / crc64 / crc64.go
index 5b64390..6925867 100644 (file)
@@ -79,15 +79,7 @@ func (d *digest) Sum64() uint64 { return d.crc }
 
 func (d *digest) Sum(in []byte) []byte {
        s := d.Sum64()
-       in = append(in, byte(s>>56))
-       in = append(in, byte(s>>48))
-       in = append(in, byte(s>>40))
-       in = append(in, byte(s>>32))
-       in = append(in, byte(s>>24))
-       in = append(in, byte(s>>16))
-       in = append(in, byte(s>>8))
-       in = append(in, byte(s))
-       return in
+       return append(in, byte(s>>56), byte(s>>48), byte(s>>40), byte(s>>32), byte(s>>24), byte(s>>16), byte(s>>8), byte(s))
 }
 
 // Checksum returns the CRC-64 checksum of data