From: jsg Date: Fri, 7 Oct 2022 03:00:44 +0000 (+0000) Subject: add CIRC_SPACE() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=693b3b5aa32755a34327cac1ff10260eb68f4163;p=openbsd add CIRC_SPACE() --- diff --git a/sys/dev/pci/drm/include/linux/circ_buf.h b/sys/dev/pci/drm/include/linux/circ_buf.h index e69de29bb2d..41742554654 100644 --- 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