GNU Linux-libre 4.14.266-gnu1
[releases.git] / drivers / staging / media / atomisp / pci / atomisp2 / css2400 / css_2401_system / hrt / defs.h
1 /*
2  * Support for Intel Camera Imaging ISP subsystem.
3  * Copyright (c) 2015, Intel Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  */
14
15 #ifndef _HRT_DEFS_H_
16 #define _HRT_DEFS_H_
17
18 #ifndef HRTCAT
19 #define _HRTCAT(m, n)     m##n
20 #define HRTCAT(m, n)      _HRTCAT(m, n)
21 #endif
22
23 #ifndef HRTSTR
24 #define _HRTSTR(x)   #x
25 #define HRTSTR(x)    _HRTSTR(x)
26 #endif
27
28 #ifndef HRTMIN
29 #define HRTMIN(a, b) (((a) < (b)) ? (a) : (b))
30 #endif
31
32 #ifndef HRTMAX
33 #define HRTMAX(a, b) (((a) > (b)) ? (a) : (b))
34 #endif
35
36 #endif /* _HRT_DEFS_H_ */