aboutsummaryrefslogtreecommitdiff
path: root/api/except.txt
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2017-02-21 10:22:05 -0800
committerRobert Griesemer <gri@golang.org>2017-02-21 19:31:40 +0000
commit174058038c72aa0e2cc254ef91d4dbf2956a8d1e (patch)
treeadce45a01a78f558d244b372295c623d4d9e873a /api/except.txt
parent10d718b9839dc7b1c55761d6c9f3001fac498cd0 (diff)
downloadgo-174058038c72aa0e2cc254ef91d4dbf2956a8d1e.tar.gz
go-174058038c72aa0e2cc254ef91d4dbf2956a8d1e.zip
math/big: define Word as uint instead of uintptr
For compatibility with math/bits uint operations. When math/big was written originally, the Go compiler used 32bit int/uint values even on a 64bit machine. uintptr was the type that represented the machine register size. Now, the int/uint types are sized to the native machine register size, so they are the natural machine Word type. On most machines, the size of int/uint correspond to the size of uintptr. On platforms where uint and uintptr have different sizes, this change may lead to performance differences (e.g., amd64p32). Change-Id: Ief249c160b707b6441848f20041e32e9e9d8d8ca Reviewed-on: https://go-review.googlesource.com/37372 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'api/except.txt')
-rw-r--r--api/except.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/except.txt b/api/except.txt
index 857ebb5d7d..fbabd18a81 100644
--- a/api/except.txt
+++ b/api/except.txt
@@ -1,4 +1,5 @@
pkg encoding/json, method (*RawMessage) MarshalJSON() ([]uint8, error)
+pkg math/big, type Word uintptr
pkg net, func ListenUnixgram(string, *UnixAddr) (*UDPConn, error)
pkg os (linux-arm), const O_SYNC = 4096
pkg os (linux-arm-cgo), const O_SYNC = 4096