summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorbjs <bjs>2008-03-17 02:32:43 +0000
committerbjs <bjs>2008-03-17 02:32:43 +0000
commitcf2323a6a181aa317de72cb01882c8851331aaf6 (patch)
tree79e7a339ab5a4c1d649c856d35ba8629eecf375c /audio
parent73bcd62bb15359e08d69cbf5acf401f120dd27a0 (diff)
downloadpkgsrc-cf2323a6a181aa317de72cb01882c8851331aaf6.tar.gz
Oops, add ${FILESDIR} and its contents.
Diffstat (limited to 'audio')
-rw-r--r--audio/jack-devel/files/atomicity.h26
1 files changed, 26 insertions, 0 deletions
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 <sys/atomic.h>
+
+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 */