1
0
mirror of https://github.com/golang/go synced 2024-11-07 23:16:14 -07:00
go/src/bytes
bill_ofarrell a5f8128e39 bytes, strings: fix comparison of long byte slices on s390x
The existing implementation of bytes.Compare on s390x doesn't work properly for slices longer
than 256 elements. This change fixes that. Added tests for long strings and slices of bytes.

Fixes #26114

Change-Id: If6d8b68ee6dbcf99a24f867a1d3438b1f208954f
Reviewed-on: https://go-review.googlesource.com/121495
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-06-29 20:48:07 +00:00
..
boundary_test.go bytes: reduce work in IndexNearPageBoundary test 2017-11-04 11:09:49 +00:00
buffer_test.go bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
buffer.go bytes: re-slice buffer to its previous length after call to grow() 2018-05-29 19:46:33 +00:00
bytes_decl.go internal/bytealg: move compare functions to bytealg 2018-03-04 17:49:39 +00:00
bytes_test.go internal/bytealg: move Count to bytealg 2018-03-04 17:49:25 +00:00
bytes.go bytes, strings: improve EqualFold fast version for ASCII 2018-05-01 18:52:19 +00:00
compare_test.go bytes, strings: fix comparison of long byte slices on s390x 2018-06-29 20:48:07 +00:00
example_test.go bytes, strings: restore O(1) behavior of IndexAny(s, "") and LastIndexAny(s, "") 2017-11-15 21:26:05 +00:00
export_test.go internal/bytealg: move Count to bytealg 2018-03-04 17:49:25 +00:00
reader_test.go bytes: improve test readability 2017-09-20 13:41:03 +00:00
reader.go bytes: add documentation to reader methods 2017-09-21 18:57:04 +00:00