1
0
mirror of https://github.com/golang/go synced 2024-11-26 22:11:25 -07:00

math/bits: note that functions here may be compiler intrinsics

It was noted in the go1.9 release notes that functions in math/bits
may be implemented by compiler intrinsics, but this never made it to
the documentation.

This change adapts the wording of the release notes and puts it in the
documentation for math/bits.

Change-Id: Ibeea88eaf7df10952cbe670885e910ac30b49d55
Reviewed-on: https://go-review.googlesource.com/c/go/+/444035
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Nick Craig-Wood 2022-10-19 17:26:33 +01:00 committed by Keith Randall
parent 867babe1b1
commit 9e7c5030d0

View File

@ -6,6 +6,12 @@
// Package bits implements bit counting and manipulation
// functions for the predeclared unsigned integer types.
//
// Functions in this package may be implemented directly by
// the compiler, for better performance. For those functions
// the code in this package will not be used. Which
// functions are implemented by the compiler depends on the
// architecture and the Go release.
package bits
const uintSize = 32 << (^uint(0) >> 63) // 32 or 64