From 351e0f4083779d8ac91c05afebded42a302a6893 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 24 Jun 2022 13:22:02 -0700 Subject: [PATCH] runtime: avoid fma in mkfastlog2table This lets us generate identical copies of fastlog2table.go on all hosts. Tested by regenerating fastlog2table.go on linux-amd64 and darwin-arm64. Fixes #49891 Change-Id: I279d6b5abb5a5290c049d9658050fd9c8d0c0190 Reviewed-on: https://go-review.googlesource.com/c/go/+/413976 Run-TryBot: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Michael Knyszek TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor --- src/runtime/mkfastlog2table.go | 59 +++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/src/runtime/mkfastlog2table.go b/src/runtime/mkfastlog2table.go index a55f54751c..614d1f7e03 100644 --- a/src/runtime/mkfastlog2table.go +++ b/src/runtime/mkfastlog2table.go @@ -46,7 +46,64 @@ const fastlogNumBits = 5 func computeTable() []float64 { fastlog2Table := make([]float64, 1<