Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162308927
D54499.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
D54499.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h
--- a/sys/compat/linuxkpi/common/include/linux/bitops.h
+++ b/sys/compat/linuxkpi/common/include/linux/bitops.h
@@ -437,4 +437,10 @@
return ((int32_t)(value << shift) >> shift);
}
+static inline uint64_t
+rol64(uint64_t word, unsigned int shift)
+{
+ return ((word << (shift & 63)) | (word >> ((-shift) & 63)));
+}
+
#endif /* _LINUXKPI_LINUX_BITOPS_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 12, 10:24 PM (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35013801
Default Alt Text
D54499.diff (478 B)
Attached To
Mode
D54499: linuxkpi: Add `rol64()`
Attached
Detach File
Event Timeline
Log In to Comment