Module Name:    src
Committed By:   matt
Date:           Mon Jan 27 20:01:50 UTC 2014

Modified Files:
        src/common/lib/libc/atomic: atomic_and_64_cas.c

Log Message:
Return old


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libc/atomic/atomic_and_64_cas.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/common/lib/libc/atomic/atomic_and_64_cas.c
diff -u src/common/lib/libc/atomic/atomic_and_64_cas.c:1.7 src/common/lib/libc/atomic/atomic_and_64_cas.c:1.8
--- src/common/lib/libc/atomic/atomic_and_64_cas.c:1.7	Mon Jan 27 18:29:47 2014
+++ src/common/lib/libc/atomic/atomic_and_64_cas.c	Mon Jan 27 20:01:50 2014
@@ -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 @@ __sync_fetch_and_and_8(volatile uint64_t
 		old = *addr;
 		new = old & val;
 	} while (atomic_cas_64(addr, old, new) != old);
+	return old;
 }
 
 void

Reply via email to