[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 5/6] Remove unused qemu_fls function
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH v2 5/6] Remove unused qemu_fls function |
Date: |
Fri, 24 Jul 2015 13:33:11 +0100 |
Nothing uses qemu_fls() any more, so delete it.
Signed-off-by: Peter Maydell <address@hidden>
---
include/qemu-common.h | 1 -
util/cutils.c | 5 -----
2 files changed, 6 deletions(-)
diff --git a/include/qemu-common.h b/include/qemu-common.h
index 237d654..bc6f8f8 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -157,7 +157,6 @@ int stristart(const char *str, const char *val, const char
**ptr);
int qemu_strnlen(const char *s, int max_len);
char *qemu_strsep(char **input, const char *delim);
time_t mktimegm(struct tm *tm);
-int qemu_fls(int i);
int qemu_fdatasync(int fd);
int fcntl_setfl(int fd, int flag);
int qemu_parse_fd(const char *param);
diff --git a/util/cutils.c b/util/cutils.c
index 5d1c9eb..43aafde 100644
--- a/util/cutils.c
+++ b/util/cutils.c
@@ -145,11 +145,6 @@ time_t mktimegm(struct tm *tm)
return t;
}
-int qemu_fls(int i)
-{
- return 32 - clz32(i);
-}
-
/*
* Make sure data goes on disk, but if possible do not bother to
* write out the inode just for timestamp updates.
--
1.9.1
- [Qemu-devel] [PATCH v2 0/6] replace qemu_fls() with pow2ceil()/pow2floor(), Peter Maydell, 2015/07/24
- [Qemu-devel] [PATCH v2 2/6] hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation, Peter Maydell, 2015/07/24
- [Qemu-devel] [PATCH v2 4/6] exec.c: Use pow2floor() rather than hand-calculation, Peter Maydell, 2015/07/24
- [Qemu-devel] [PATCH v2 1/6] hw/pci: Use pow2ceil() rather than hand-calculation, Peter Maydell, 2015/07/24
- [Qemu-devel] [PATCH v2 3/6] hw/block/nvme.c: Use pow2ceil() rather than hand-calculation, Peter Maydell, 2015/07/24
- [Qemu-devel] [PATCH v2 5/6] Remove unused qemu_fls function,
Peter Maydell <=
- [Qemu-devel] [PATCH v2 6/6] Make pow2ceil() and pow2floor() inline, Peter Maydell, 2015/07/24