Go to the documentation of this file.
20 #ifndef __SND_SEQ_QUEUE_H
21 #define __SND_SEQ_QUEUE_H
28 #include <linux/list.h>
29 #include <linux/bitops.h>
31 #define SEQ_QUEUE_NO_OWNER (-1)
95 #define queuefree(q) snd_use_lock_free(&(q)->use_lock)
118 #if defined(i386) || defined(i486)
120 #define udiv_qrnnd(q, r, n1, n0, d) \
128 #define u64_div(x,y,q) do {u32 __tmp; udiv_qrnnd(q, __tmp, (x)>>32, x, y);} while (0)
129 #define u64_mod(x,y,r) do {u32 __tmp; udiv_qrnnd(__tmp, q, (x)>>32, x, y);} while (0)
130 #define u64_divmod(x,y,q,r) udiv_qrnnd(q, r, (x)>>32, x, y)
133 #define u64_div(x,y,q) ((q) = (u32)((u64)(x) / (u64)(y)))
134 #define u64_mod(x,y,r) ((r) = (u32)((u64)(x) % (u64)(y)))
135 #define u64_divmod(x,y,q,r) (u64_div(x,y,q), u64_mod(x,y,r))