aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2024-11-03 23:21:45 +1100
committerNigel Tao <nigeltao@golang.org>2024-11-06 21:57:39 +0000
commit9088883cf4a5181cf796c968bbce5a5bc3edc7ab (patch)
tree1791f8433816261b344a2225284c0ab150b7c9b1 /src/cmd/internal/obj
parenteb29beb0ad83353097786cda793af8dea0b05b27 (diff)
downloadgo-9088883cf4a5181cf796c968bbce5a5bc3edc7ab.tar.xz
image/jpeg: initialize dct_test constants at compile time
Doing so is slightly more accurate than calculating at run time (because of float64 rounding errors): https://go.dev/play/p/hrOzHDLjd5K Having these more accurate values isn't necessary for tests to pass, but it's helpful if doing printf-debugging or stepping through the code. Change-Id: I07a65678936e4db05b11f9d8d952b32b2acd51a8 Reviewed-on: https://go-review.googlesource.com/c/go/+/624716 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Nigel Tao <nigeltao@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/internal/obj')
0 files changed, 0 insertions, 0 deletions