Cleaned atomic stuff

This commit is contained in:
Jaroslav Kysela 2001-12-07 09:05:03 +00:00
parent e4e3929325
commit 1bee1ded21

View file

@ -33,23 +33,13 @@
#include <dlfcn.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "iatomic.h"
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_meter = "";
#endif
#if defined(__sparc__) || defined(__ia64__) || defined(__mips__)
/* asm/atomic.h is unavailable on sparc and ia64 */
#define atomic_t int
#define atomic_read(x) (*(x))
#define atomic_dec(x) ((*(x))--)
#define atomic_inc(x) ((*(x))++)
#define atomic_set(x,i) (*(x) = (i))
#else
#include <asm/atomic.h>
#endif
#ifndef DOC_HIDDEN
#define FREQUENCY 50