github.com/timandy/routine@v1.1.4-0.20240507073150-e4a3e1fe2ba5/g/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_386
    15  #define	get_tls(r)	MOVL TLS, r
    16  #define	g(r)	0(r)(TLS*1)
    17  #endif