aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/encode.go
diff options
context:
space:
mode:
authorJorropo <jorropo.pgm@gmail.com>2025-12-04 06:46:19 +0100
committerJorropo <jorropo.pgm@gmail.com>2026-01-23 12:04:51 -0800
commit82ef9f5b2130cb4cc88c52c68b7bd45764ab2200 (patch)
treeaf046d5b6cc8c29a60bed5dfc4f089f7df4d863c /src/encoding/json/encode.go
parent3443ae086314e8cb7994166a5b63a8ab056b6c44 (diff)
downloadgo-82ef9f5b2130cb4cc88c52c68b7bd45764ab2200.tar.xz
cmd/compile: cleanup isUnsignedPowerOfTwo
Merge the signed and unsigned generic functions. The only implementation difference between the two is: n > 0 vs n != 0 check. For unsigned numbers n > 0 == n != 0 and we infact optimize the first to the second. Change-Id: Ia2f6c3e3d4eb098d98f85e06dc2e81baa60bad4e Reviewed-on: https://go-review.googlesource.com/c/go/+/726720 Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions