Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/atomic Return old
details: https://anonhg.NetBSD.org/src/rev/c53cbe6605c1
branches: trunk
changeset: 326377:c53cbe6605c1
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 27 20:01:50 2014 +0000
description:
Return old
diffstat:
common/lib/libc/atomic/atomic_and_64_cas.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 1c89947e673c -r c53cbe6605c1 common/lib/libc/atomic/atomic_and_64_cas.c
--- a/common/lib/libc/atomic/atomic_and_64_cas.c Mon Jan 27 19:19:15 2014 +0000
+++ b/common/lib/libc/atomic/atomic_and_64_cas.c Mon Jan 27 20:01:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_and_64_cas.c,v 1.7 2014/01/27 18:29:47 matt Exp $ */
+/* $NetBSD: atomic_and_64_cas.c,v 1.8 2014/01/27 20:01:50 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -46,6 +46,7 @@
old = *addr;
new = old & val;
} while (atomic_cas_64(addr, old, new) != old);
+ return old;
}
void
Home |
Main Index |
Thread Index |
Old Index