Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libmctp
/
f967c709d0b95a393aa5ac33017b500a05bd5546
/
.
/
range.h
blob: 6c960158dd96b486758dc1f81a4333586c82d55b [
file
] [
log
] [
blame
]
#ifndef
_RANGE_H
#define
_RANGE_H
#define
MIN
(
a
,
b
)
\
({
\
typeof
(
a
)
_a
=
a
;
\
typeof
(
b
)
_b
=
b
;
\
_a
<
_b
?
_a
:
_b
;
\
})
#define
MAX
(
a
,
b
)
\
({
\
typeof
(
a
)
_a
=
a
;
\
typeof
(
b
)
_b
=
b
;
\
_a
>
_b
?
_a
:
_b
;
\
})
#endif