Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164369332
D55739.id175008.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
610 B
Referenced Files
None
Subscribers
None
D55739.id175008.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/minmax.h b/sys/compat/linuxkpi/common/include/linux/minmax.h
--- a/sys/compat/linuxkpi/common/include/linux/minmax.h
+++ b/sys/compat/linuxkpi/common/include/linux/minmax.h
@@ -60,6 +60,9 @@
type __max2 = (y); \
__max1 > __max2 ? __max1 : __max2; })
+#define MIN_T(type, x, y) MIN((type)(x), (type)(y))
+#define MAX_T(type, x, y) MAX((type)(x), (type)(y))
+
#define clamp_t(type, _x, min, max) min_t(type, max_t(type, _x, min), max)
#define clamp(x, lo, hi) min(max(x, lo), hi)
#define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 1, 6:05 AM (1 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35812165
Default Alt Text
D55739.id175008.diff (610 B)
Attached To
Mode
D55739: linuxkpi: Define `MIN_T()` and `MAX_T()`
Attached
Detach File
Event Timeline
Log In to Comment