Add __sync_fetch_and_<OP>_<N> aliases

This commit is contained in:
matt 2014-01-27 18:12:57 +00:00
parent 739e8f6504
commit 3f7729ad00
4 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic_and_32_cas.c,v 1.4 2008/04/28 20:22:52 martin Exp $ */
/* $NetBSD: atomic_and_32_cas.c,v 1.5 2014/01/27 18:12:57 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -46,6 +46,8 @@ atomic_and_32(volatile uint32_t *addr, uint32_t val)
#undef atomic_and_32
atomic_op_alias(atomic_and_32,_atomic_and_32)
__strong_alias(__sync_fetch_and_and_4,_atomic_and_32)
#undef atomic_and_uint
atomic_op_alias(atomic_and_uint,_atomic_and_32)
__strong_alias(_atomic_and_uint,_atomic_and_32)

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic_and_64_cas.c,v 1.5 2008/04/28 20:22:52 martin Exp $ */
/* $NetBSD: atomic_and_64_cas.c,v 1.6 2014/01/27 18:12:57 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -48,6 +48,8 @@ atomic_and_64(volatile uint64_t *addr, uint64_t val)
#undef atomic_and_64
atomic_op_alias(atomic_and_64,_atomic_and_64)
__strong_alias(__sync_fetch_and_and_8,_atomic_and_64)
#if defined(_LP64)
#undef atomic_and_ulong
atomic_op_alias(atomic_and_ulong,_atomic_and_64)

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic_or_32_cas.c,v 1.4 2008/04/28 20:22:53 martin Exp $ */
/* $NetBSD: atomic_or_32_cas.c,v 1.5 2014/01/27 18:12:57 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -46,6 +46,8 @@ atomic_or_32(volatile uint32_t *addr, uint32_t val)
#undef atomic_or_32
atomic_op_alias(atomic_or_32,_atomic_or_32)
__strong_alias(__sync_fetch_and_or_4,_atomic_or_32)
#undef atomic_or_uint
atomic_op_alias(atomic_or_uint,_atomic_or_32)
__strong_alias(_atomic_or_uint,_atomic_or_32)

View File

@ -1,4 +1,4 @@
/* $NetBSD: atomic_or_64_cas.c,v 1.5 2008/04/28 20:22:53 martin Exp $ */
/* $NetBSD: atomic_or_64_cas.c,v 1.6 2014/01/27 18:12:57 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -48,6 +48,8 @@ atomic_or_64(volatile uint64_t *addr, uint64_t val)
#undef atomic_or_64
atomic_op_alias(atomic_or_64,_atomic_or_64)
__strong_alias(__sync_fetch_and_or_8,_atomic_or_64)
#if defined(_LP64)
#undef atomic_or_ulong
atomic_op_alias(atomic_or_ulong,_atomic_or_64)