Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libmctp
/
cfeaef8ecb0ab8c59ea4e145603523e599d60014
/
.
/
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