artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63ed713
)
add CIRC_SPACE()
author
jsg
<jsg@openbsd.org>
Fri, 7 Oct 2022 03:00:44 +0000
(
03:00
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 7 Oct 2022 03:00:44 +0000
(
03:00
+0000)
sys/dev/pci/drm/include/linux/circ_buf.h
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/include/linux/circ_buf.h
b/sys/dev/pci/drm/include/linux/circ_buf.h
index
e69de29
..
4174255
100644
(file)
--- a/
sys/dev/pci/drm/include/linux/circ_buf.h
+++ b/
sys/dev/pci/drm/include/linux/circ_buf.h
@@
-0,0
+1,8
@@
+/* Public domain. */
+
+#ifndef _LINUX_CIRC_BUF_H
+#define _LINUX_CIRC_BUF_H
+
+#define CIRC_SPACE(h,t,s) (((t) - ((h)+1)) & ((s)-1))
+
+#endif