Page MenuHomeFreeBSD

D24782.diff
No OneTemporary

D24782.diff

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

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)

Event Timeline