cbmimage
Loading...
Searching...
No Matches
helper.h
Go to the documentation of this file.
1
8#ifndef CBMIMAGE_HELPER_H
9#define CBMIMAGE_HELPER_H 1
10
20#define CBMIMAGE_ARRAYSIZE(_x) \
21 (sizeof (_x) / sizeof (_x)[0])
22
35static inline
36int
37min(int a, int b)
38{
39 return (a < b) ? a : b;
40}
41
54static inline
55int
56max(int a, int b)
57{
58 return (a > b) ? a : b;
59}
60
61#endif // #ifndef CBMIMAGE_HELPER_H
static int min(int a, int b)
Definition helper.h:37
static int max(int a, int b)
Definition helper.h:56