github.com/aloncn/graphics-go@v0.0.1/src/runtime/os1_linux_mips64x.go (about)

     1  // Copyright 2015 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.
     4  
     5  // +build mips64 mips64le
     6  // +build linux
     7  
     8  package runtime
     9  
    10  var sigset_all = sigset{^uint64(0), ^uint64(0)}
    11  
    12  func sigaddset(mask *sigset, i int) {
    13  	(*mask)[(i-1)/64] |= 1 << ((uint32(i) - 1) & 63)
    14  }
    15  
    16  func sigdelset(mask *sigset, i int) {
    17  	(*mask)[(i-1)/64] &^= 1 << ((uint32(i) - 1) & 63)
    18  }
    19  
    20  func sigfillset(mask *[2]uint64) {
    21  	(*mask)[0], (*mask)[1] = ^uint64(0), ^uint64(0)
    22  }
    23  
    24  func sigcopyset(mask *sigset, m sigmask) {
    25  	(*mask)[0] = uint64(m[0]) | uint64(m[1])<<32
    26  }