Skip to content

Commit 0d33a89

Browse files
committed
doc: add FMA mention to Go 1.9 release notes
Fixes #20795 Updates #17895 Updates #20587 Change-Id: Iea375f3a6ffe3f51e3ffdae1fb3fd628b6b3316c Reviewed-on: https://go-review.googlesource.com/46717 Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 parent bd4fcd0 commit 0d33a89

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

doc/go1.9.html

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ <h2 id="introduction">DRAFT RELEASE NOTES - Introduction to Go 1.9</h2>
2727
after <a href="go1.8">Go 1.8</a> and is the tenth release in
2828
the <a href="https://golang.org/doc/devel/release.html">Go 1.x
2929
series</a>.
30-
There is one <a href="#language">change to the language</a>, adding
31-
support for type aliases.
30+
There are two <a href="#language">changes to the language</a>,
31+
adding support for type aliases, and defining when implementations
32+
may fuse floating point operations.
3233
Most of the changes are in the implementation of the toolchain,
3334
runtime, and libraries.
3435
As always, the release maintains the Go 1
@@ -49,7 +50,9 @@ <h2 id="introduction">DRAFT RELEASE NOTES - Introduction to Go 1.9</h2>
4950
<h2 id="language">Changes to the language</h2>
5051

5152
<p>
52-
There is one change to the language.
53+
There are two changes to the language.
54+
</p>
55+
<p>
5356
Go now supports type aliases to support gradual code repair while
5457
moving a type between packages.
5558
The <a href="https://golang.org/design/18130-type-alias">type alias
@@ -69,6 +72,16 @@ <h2 id="language">Changes to the language</h2>
6972
both <code>T1</code> and <code>T2</code> denote the same type.
7073
</p>
7174

75+
<p> <!-- CL 40391 -->
76+
A smaller language change is that the
77+
<a href="/ref/spec#Floating_point_operators">language specification
78+
now states</a> when implementations are allowed to fuse floating
79+
point operations together, such as by using an architecture's "fused
80+
multiply and add" (FMA) instruction to compute <code>x*y + z</code>
81+
without rounding the intermediate result <code>x*y</code>.
82+
To force the intermediate rounding, write <code>float64(x*y) + z</code>.
83+
</p>
84+
7285
<h2 id="ports">Ports</h2>
7386

7487
<p>

0 commit comments

Comments
 (0)