fix tpyos.
This commit is contained in:
parent
f5dc673f71
commit
0e4f0176c5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atomic_and_32_cas.c,v 1.6 2014/01/27 18:29:47 matt Exp $ */
|
||||
/* $NetBSD: atomic_and_32_cas.c,v 1.7 2014/01/27 18:36:52 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/atomic.h>
|
||||
|
||||
uint32_t atomic_and_32(volatile uint32_t *, uint32_t);
|
||||
uint32_t __sync_fetch_and_and_4(volatile uint32_t *, uint32_t);
|
||||
|
||||
uint32_t
|
||||
__sync_fetch_and_and_4(volatile uint32_t *addr, uint32_t val)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atomic_or_32_cas.c,v 1.6 2014/01/27 18:29:47 matt Exp $ */
|
||||
/* $NetBSD: atomic_or_32_cas.c,v 1.7 2014/01/27 18:36:52 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
|
@ -50,7 +50,7 @@ __sync_fetch_and_or_4(volatile uint32_t *addr, uint32_t val)
|
|||
void
|
||||
atomic_or_32(volatile uint32_t *addr, uint32_t val)
|
||||
{
|
||||
(void) __sync_val_compare_and_swap_4(addr, val);
|
||||
(void) __sync_fetch_and_or_4(addr, val);
|
||||
}
|
||||
|
||||
#undef atomic_or_32
|
||||
|
|
Loading…
Reference in New Issue