Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153562790
D38536.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
513 B
Referenced Files
None
Subscribers
None
D38536.id.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/bitfield.h b/sys/compat/linuxkpi/common/include/linux/bitfield.h
--- a/sys/compat/linuxkpi/common/include/linux/bitfield.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitfield.h
@@ -127,6 +127,9 @@
#define __bf_shf(x) (__builtin_ffsll(x) - 1)
+#define FIELD_FIT(_mask, _value) \
+ (!(((typeof(_mask))(_value) << __bf_shf(_mask)) & ~(_mask)))
+
#define FIELD_PREP(_mask, _value) \
(((typeof(_mask))(_value) << __bf_shf(_mask)) & (_mask))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 10:43 PM (11 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31986976
Default Alt Text
D38536.id.diff (513 B)
Attached To
Mode
D38536: linuxkpi: Define `FIELD_FIT()`
Attached
Detach File
Event Timeline
Log In to Comment