Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / hidds / nouveau / drm / drm-aros / drm_bufs.c
blobcee4e6ba08bf968294672684080ec32140230d28
1 /*
2 Copyright 2009-2011, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "drmP.h"
8 int drm_order(unsigned long size)
10 int order;
11 unsigned long tmp;
13 for (order = 0, tmp = size >> 1; tmp; tmp >>= 1, order++) ;
15 if (size & (size - 1))
16 ++order;
18 return order;