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