pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/jack-devel/files Oops, add ${FILESDIR} and its c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/74133cf34cbf
branches: trunk
changeset: 539924:74133cf34cbf
user: bjs <bjs%pkgsrc.org@localhost>
date: Mon Mar 17 02:32:43 2008 +0000
description:
Oops, add ${FILESDIR} and its contents.
diffstat:
audio/jack-devel/files/atomicity.h | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r c063e5b21e60 -r 74133cf34cbf audio/jack-devel/files/atomicity.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack-devel/files/atomicity.h Mon Mar 17 02:32:43 2008 +0000
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index