Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103064480
D24782.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24782.diff
View Options
Index: head/sys/compat/linuxkpi/common/include/linux/bitmap.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/bitmap.h
+++ head/sys/compat/linuxkpi/common/include/linux/bitmap.h
@@ -255,6 +255,17 @@
}
static inline void
+bitmap_copy(unsigned long *dst, const unsigned long *src,
+ const unsigned int size)
+{
+ const unsigned int end = BITS_TO_LONGS(size);
+ unsigned int i;
+
+ for (i = 0; i != end; i++)
+ dst[i] = src[i];
+}
+
+static inline void
bitmap_or(unsigned long *dst, const unsigned long *src1,
const unsigned long *src2, const unsigned int size)
{
@@ -274,6 +285,17 @@
for (i = 0; i != end; i++)
dst[i] = src1[i] & src2[i];
+}
+
+static inline void
+bitmap_andnot(unsigned long *dst, const unsigned long *src1,
+ const unsigned long *src2, const unsigned int size)
+{
+ const unsigned int end = BITS_TO_LONGS(size);
+ unsigned int i;
+
+ for (i = 0; i != end; i++)
+ dst[i] = src1[i] & ~src2[i];
}
static inline void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 11:24 AM (21 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14760550
Default Alt Text
D24782.diff (1 KB)
Attached To
Mode
D24782: linuxkpi: Add bitmap_copy and bitmap_andnot
Attached
Detach File
Event Timeline
Log In to Comment