diff --git a/headers/private/kernel/disk_device_manager/KDiskDeviceUtils.h b/headers/private/kernel/disk_device_manager/KDiskDeviceUtils.h index ab7d7345d3..80661835a6 100644 --- a/headers/private/kernel/disk_device_manager/KDiskDeviceUtils.h +++ b/headers/private/kernel/disk_device_manager/KDiskDeviceUtils.h @@ -13,6 +13,28 @@ namespace DiskDevice { // helper functions +// min +template +static inline +const T& +min(const T &a, const T &b) +{ + if (a < b) + return a; + return b; +} + +// max +template +static inline +const T& +max(const T &a, const T &b) +{ + if (a < b) + return b; + return a; +} + // set_string static inline status_t