mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-09 20:24:14 +00:00
[host] d12: implement initial RGB24 support
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#ifndef _H_LG_COMMON_UTIL_
|
||||
#define _H_LG_COMMON_UTIL_
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) ({ __typeof__ (a) _a = (a); __typeof__ (b) _b = (b); \
|
||||
_a < _b ? _a : _b; })
|
||||
@@ -43,4 +45,7 @@
|
||||
#define unlikely(expr) __builtin_expect(!!(expr), 0)
|
||||
#define likely(expr) __builtin_expect(!!(expr), 1)
|
||||
|
||||
#define _STR(x) #x
|
||||
#define STR(x) _STR(x)
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user