Delta Between Two Patch Sets: src/pkg/runtime/arm/atomic.c
Issue 4631059 :
code review 4631059: runtime: replace Semacquire/Semrelease implementation (Closed)
Left Patch Set: diff -r 6f1145ee588d https://go.googlecode.com/hg/
Right Patch Set: diff -r 607e0f74161f https://go.googlecode.com/hg/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/pkg/runtime/386/atomic.c
src/pkg/runtime/Makefile
src/pkg/runtime/amd64/atomic.c
src/pkg/runtime/arm/atomic.c
src/pkg/runtime/runtime.h
src/pkg/runtime/sema.goc
LEFT RIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include "runtime.h" 5 #include "runtime.h"
6 6
7 #pragma textflag 7 7 #pragma textflag 7
8 uint32 8 uint32
9 runtime· load (uint32 volatile* addr) 9 runtime· atomicload (uint32 volatile* addr)
10 { 10 {
11 return runtime·xadd(addr, 0); 11 return runtime·xadd(addr, 0);
12 } 12 }
LEFT RIGHT