github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/runtime/atomic_amd64.c (about)

     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.
     4  
     5  #include "runtime.h"
     6  #include "../../cmd/ld/textflag.h"
     7  
     8  #pragma textflag NOSPLIT
     9  uint32
    10  runtime·atomicload(uint32 volatile* addr)
    11  {
    12  	return *addr;
    13  }
    14  
    15  #pragma textflag NOSPLIT
    16  uint64
    17  runtime·atomicload64(uint64 volatile* addr)
    18  {
    19  	return *addr;
    20  }
    21  
    22  #pragma textflag NOSPLIT
    23  void*
    24  runtime·atomicloadp(void* volatile* addr)
    25  {
    26  	return *addr;
    27  }