mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
It is no longer used. Change-Id: Id64f387867a0503d13eaecda12e6606682c24595 Reviewed-on: https://go-review.googlesource.com/41790 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
25 lines
447 B
Go
25 lines
447 B
Go
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package gc
|
|
|
|
type bitset8 uint8
|
|
|
|
func (f *bitset8) set(mask uint8, b bool) {
|
|
if b {
|
|
*(*uint8)(f) |= mask
|
|
} else {
|
|
*(*uint8)(f) &^= mask
|
|
}
|
|
}
|
|
|
|
type bitset32 uint32
|
|
|
|
func (f *bitset32) set(mask uint32, b bool) {
|
|
if b {
|
|
*(*uint32)(f) |= mask
|
|
} else {
|
|
*(*uint32)(f) &^= mask
|
|
}
|
|
}
|