github.com/v2pro/plz@v0.0.0-20221028024117-e5f9aec5b631/gls/go_tls.h (about)

     1  // Copyright 2014 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  #ifdef GOARCH_arm
     6  #define LR R14
     7  #endif
     8  
     9  #ifdef GOARCH_amd64
    10  #define	get_tls(r)	MOVQ TLS, r
    11  #define	g(r)	0(r)(TLS*1)
    12  #endif
    13  
    14  #ifdef GOARCH_amd64p32
    15  #define	get_tls(r)	MOVL TLS, r
    16  #define	g(r)	0(r)(TLS*1)
    17  #endif
    18  
    19  #ifdef GOARCH_386
    20  #define	get_tls(r)	MOVL TLS, r
    21  #define	g(r)	0(r)(TLS*1)
    22  #endif