source:
GPL/trunk/include/linux/minmax.h@
776
| Last change on this file since 776 was 772, checked in by , 7 months ago | |
|---|---|
| File size: 140 bytes | |
| Line | |
|---|---|
| 1 | #ifndef LINUX_MINMAX_H |
| 2 | #define LINUX_MINMAX_H |
| 3 | #define clamp(val, lo, hi) \ |
| 4 | ((val) >= (hi) ? (hi) : ((val) <= (lo) ? (lo) : (val))) |
| 5 | |
| 6 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
