mirror of
https://github.com/golang/go
synced 2024-11-17 03:24:49 -07:00
d57ebde91f
This change introduces the Compare and Compare32 functions based on the total-ordering predicate in IEEE-754, section 5.10. In particular, * -NaN is ordered before any other value * +NaN is ordered after any other value * -0 is ordered before +0 * All other values are ordered the usual way name time/op Compare-8 0.24ns ± 1% Compare32-8 0.24ns ± 0% Fixes #56491. Change-Id: I9444fbfefe26741794c4436a26d403b8da97bdaf Reviewed-on: https://go-review.googlesource.com/c/go/+/459435 Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: David Chase <drchase@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> |
||
---|---|---|
.. | ||
25448.txt | ||
54386.txt | ||
55002.txt | ||
55079.txt | ||
56491.txt | ||
56661.txt | ||
56887.txt | ||
56984.txt | ||
57237.txt | ||
57436.txt | ||
57708.txt |