[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 3/6] bitops: change BITS_TO_LONGS
From: |
liguang |
Subject: |
[Qemu-devel] [PATCH v2 3/6] bitops: change BITS_TO_LONGS |
Date: |
Fri, 22 Feb 2013 12:15:30 +0800 |
Signed-off-by: liguang <address@hidden>
---
include/qemu/bitops.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/qemu/bitops.h b/include/qemu/bitops.h
index 74e14e5..7758792 100644
--- a/include/qemu/bitops.h
+++ b/include/qemu/bitops.h
@@ -20,7 +20,7 @@
#define BIT(nr) (1UL << (nr))
#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
#define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
-#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
+#define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
/**
* bitops_ffs - find first bit in word.
--
1.7.2.5
- [Qemu-devel] [PATCH v2 0/6] change acpi numa info format passed from qemu to seabios, liguang, 2013/02/21
- [Qemu-devel] [PATCH v2 1/6] pc/bios: move common BIOS_CFG_IOPORT into fw_cfg.h, liguang, 2013/02/21
- [Qemu-devel] [PATCH v2 3/6] bitops: change BITS_TO_LONGS,
liguang <=
- [Qemu-devel] [PATCH v2 2/6] pc/numa: refactor bios_init function, liguang, 2013/02/21
- [Qemu-devel] [PATCH v2 6/6] load_linux: change kernel header size allocation, liguang, 2013/02/21
- [Qemu-devel] [PATCH v2 5/6] load_linux: report open kernel file & its size error, liguang, 2013/02/21
- [Qemu-devel] [PATCH v2 4/6] pc: format load_linux(), liguang, 2013/02/21