github.com/akaros/go-akaros@v0.0.0-20181004170632-85005d477eab/src/runtime/parlib/akaros.h (about)

     1  // Copyright 2013 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  
     6  // TODO(wheatman) think about making this autogenerated
     7  
     8  // I wanted to pass UINFO through cgo -cdefs, but it turns all #defines into
     9  // enums, which can only be 32-bit
    10  #ifdef _64BIT
    11  //#define UINFO 0x00007f7fffc00000
    12  static const uint64 UINFO = 0x00007f7fffc00000ULL;
    13  static const uint64 GINFO = 0x00007f7fffe00000ULL;
    14  #else
    15  //#define UINFO 0x7f800000
    16  static const uint32 UINFO = 0x7f800000UL;
    17  #endif
    18  
    19  #define MIN(a, b)	((a < b) ? a : b)
    20  #define MAX(a, b)	((a > b) ? a : b)
    21  
    22  #define __procinfo (*(ProcinfoType*)UINFO)
    23  #define __proc_global_info (*(GlobalProcinfoType*)GINFO)