From fa8084995acf6b08a2d66992f605b026a80706fc Mon Sep 17 00:00:00 2001 From: bjs Date: Mon, 17 Mar 2008 02:32:43 +0000 Subject: Oops, add ${FILESDIR} and its contents. --- audio/jack-devel/files/atomicity.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 audio/jack-devel/files/atomicity.h (limited to 'audio') diff --git a/audio/jack-devel/files/atomicity.h b/audio/jack-devel/files/atomicity.h new file mode 100644 index 00000000000..3d7e43a1293 --- /dev/null +++ b/audio/jack-devel/files/atomicity.h @@ -0,0 +1,26 @@ +// Low-level functions for atomic operations: IA64 version -*- C++ -*- + +/* $NetBSD: atomicity.h,v 1.1 2008/03/17 02:32:43 bjs Exp $ */ + +#ifndef _NETBSD_ATOMICITY_H +#define _NETBSD_ATOMICITY_H 1 + +#include + +typedef unsigned int _Atomic_word; + +static inline _Atomic_word +__attribute__ ((__unused__)) +__exchange_and_add(volatile _Atomic_word* __mem, int __val) +{ + return atomic_add_int_nv(__mem, __val); +} + +static inline void +__attribute__ ((__unused__)) +__atomic_add(volatile _Atomic_word* __mem, int __val) +{ + atomic_add_int(__mem, __val); +} + +#endif /* atomicity.h */ -- cgit v1.2.3