add CIRC_SPACE()
authorjsg <jsg@openbsd.org>
Fri, 7 Oct 2022 03:00:44 +0000 (03:00 +0000)
committerjsg <jsg@openbsd.org>
Fri, 7 Oct 2022 03:00:44 +0000 (03:00 +0000)
sys/dev/pci/drm/include/linux/circ_buf.h

index e69de29..4174255 100644 (file)
@@ -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