Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1403 → Rev 1404

/drivers/video/drm/includes/linux/kernel.h
78,6 → 78,22
(void) (&_max1 == &_max2); \
_max1 > _max2 ? _max1 : _max2; })
 
/*
* ..and if you can't take the strict
* types, you can specify one yourself.
*
* Or not use min/max/clamp at all, of course.
*/
#define min_t(type, x, y) ({ \
type __min1 = (x); \
type __min2 = (y); \
__min1 < __min2 ? __min1: __min2; })
 
#define max_t(type, x, y) ({ \
type __max1 = (x); \
type __max2 = (y); \
__max1 > __max2 ? __max1: __max2; })
 
/**
* container_of - cast a member of a structure out to the containing structure
* @ptr: the pointer to the member.