]> Cypherpunks repositories - gostls13.git/commit
all: calculate the median uniformly
authorJes Cok <xigua67damn@gmail.com>
Thu, 7 Sep 2023 11:07:30 +0000 (11:07 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 9 Sep 2023 01:46:03 +0000 (01:46 +0000)
commit267323ef2d22da4b2a5ed1ed6f220421aa580a6c
treec3f00aaf1e254d4585a5dc8ebf09daad9d019654
parent4651c0c6d9239514715123f0788d4c2c769130f7
all: calculate the median uniformly

Like sort.Search, use "h := int(uint(i+j) >> 1)" style code to calculate
the median.

Change-Id: Ifb1a19dde1c6ed6c1654bc642fc9565a8b6c5fc4
GitHub-Last-Rev: e2213b738832f1674948d6507f40e2c0b98cb972
GitHub-Pull-Request: golang/go#62503
Reviewed-on: https://go-review.googlesource.com/c/go/+/526496
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/regexp/syntax/prog.go
src/time/zoneinfo.go
src/unicode/letter.go
src/unicode/letter_test.go