* doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
[official-gcc.git] / libgo / go / runtime / os1_linux_generic.go
blob2c8b743aeb0bce57830fe139f2a985ef6b817f90
1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build !mips64
6 // +build !mips64le
7 // +build linux
9 package runtime
11 var sigset_all = sigset{^uint32(0), ^uint32(0)}
13 func sigaddset(mask *sigset, i int) {
14 (*mask)[(i-1)/32] |= 1 << ((uint32(i) - 1) & 31)
17 func sigdelset(mask *sigset, i int) {
18 (*mask)[(i-1)/32] &^= 1 << ((uint32(i) - 1) & 31)
21 func sigfillset(mask *uint64) {
22 *mask = ^uint64(0)
25 func sigcopyset(mask *sigset, m sigmask) {
26 copy((*mask)[:], m[:])