]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
w32: Remove implementation of function ffs
authorStefan Weil <weil@mail.berlios.de>
Fri, 4 Feb 2011 21:38:48 +0000 (22:38 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 20 Feb 2011 20:18:21 +0000 (20:18 +0000)
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>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
oslib-win32.c

index ab29eae45ce3f58da3fe25c5bb3c31b37b4ebeab..5f0759ffc48435cc504a62fdb5381fd9cc00b855 100644 (file)
@@ -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)