Patchwork [2/2] w32: Remove implementation of function ffs

login
register
mail settings
Submitter Stefan Weil
Date Feb. 4, 2011, 9:38 p.m.
Message ID <1296855528-17009-2-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/81954/
State Accepted
Headers show

Comments

Stefan Weil - Feb. 4, 2011, 9:38 p.m.
This implementation is no longer needed.

ffs is either a built-in function (for compilations with optimisation)
or taken from libiberty.a (which was added by the previous patch).

Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 oslib-win32.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

Patch

diff --git a/oslib-win32.c b/oslib-win32.c
index ab29eae..5f0759f 100644
--- a/oslib-win32.c
+++ b/oslib-win32.c
@@ -93,13 +93,6 @@  void qemu_set_cloexec(int fd)
 {
 }
 
-/* mingw32 needs ffs for compilations without optimization. */
-int ffs(int i)
-{
-    /* Use gcc's builtin ffs. */
-    return __builtin_ffs(i);
-}
-
 /* Offset between 1/1/1601 and 1/1/1970 in 100 nanosec units */
 #define _W32_FT_OFFSET (116444736000000000ULL)