mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 13:38:04 +02:00
use linux kernel macros don't make our own
This commit is contained in:
parent
cd16d96856
commit
3a0230ef9c
1 changed files with 3 additions and 3 deletions
|
|
@ -215,9 +215,9 @@
|
|||
/** \name Internal types and structures */
|
||||
/*@{*/
|
||||
|
||||
#define DRM_ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
#define DRM_MIN(a,b) ((a)<(b)?(a):(b))
|
||||
#define DRM_MAX(a,b) ((a)>(b)?(a):(b))
|
||||
#define DRM_ARRAY_SIZE(x) ARRAY_SIZE(x)
|
||||
#define DRM_MIN(a,b) min(a,b)
|
||||
#define DRM_MAX(a,b) max(a,b)
|
||||
|
||||
#define DRM_LEFTCOUNT(x) (((x)->rp + (x)->count - (x)->wp) % ((x)->count + 1))
|
||||
#define DRM_BUFCOUNT(x) ((x)->count - DRM_LEFTCOUNT(x))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue