fix tpyos.

This commit is contained in:
matt 2014-01-27 18:36:52 +00:00
parent f5dc673f71
commit 0e4f0176c5
2 changed files with 4 additions and 4 deletions

View File

@ -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. * Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -33,7 +33,7 @@
#include <sys/atomic.h> #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 uint32_t
__sync_fetch_and_and_4(volatile uint32_t *addr, uint32_t val) __sync_fetch_and_and_4(volatile uint32_t *addr, uint32_t val)

View File

@ -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. * Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -50,7 +50,7 @@ __sync_fetch_and_or_4(volatile uint32_t *addr, uint32_t val)
void void
atomic_or_32(volatile uint32_t *addr, uint32_t val) 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 #undef atomic_or_32