qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5982] Rename fls to qemu_fls
@ 2008-12-11 19:37 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-12-11 19:37 UTC (permalink / raw)
  To: qemu-devel

Revision: 5982
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5982
Author:   blueswir1
Date:     2008-12-11 19:37:54 +0000 (Thu, 11 Dec 2008)

Log Message:
-----------
Rename fls to qemu_fls

Fix compiler warning on OSX, reported by Andreas Faerber.

Modified Paths:
--------------
    trunk/cutils.c
    trunk/hw/virtio.c
    trunk/qemu-common.h

Modified: trunk/cutils.c
===================================================================
--- trunk/cutils.c	2008-12-11 19:20:41 UTC (rev 5981)
+++ trunk/cutils.c	2008-12-11 19:37:54 UTC (rev 5982)
@@ -97,7 +97,7 @@
     return t;
 }
 
-int fls(int i)
+int qemu_fls(int i)
 {
     return 32 - clz32(i);
 }

Modified: trunk/hw/virtio.c
===================================================================
--- trunk/hw/virtio.c	2008-12-11 19:20:41 UTC (rev 5981)
+++ trunk/hw/virtio.c	2008-12-11 19:37:54 UTC (rev 5982)
@@ -858,7 +858,7 @@
 
     size = 20 + config_size;
     if (size & (size-1))
-        size = 1 << fls(size);
+        size = 1 << qemu_fls(size);
 
     pci_register_io_region(pci_dev, 0, size, PCI_ADDRESS_SPACE_IO,
                            virtio_map);

Modified: trunk/qemu-common.h
===================================================================
--- trunk/qemu-common.h	2008-12-11 19:20:41 UTC (rev 5981)
+++ trunk/qemu-common.h	2008-12-11 19:37:54 UTC (rev 5982)
@@ -104,7 +104,7 @@
 int strstart(const char *str, const char *val, const char **ptr);
 int stristart(const char *str, const char *val, const char **ptr);
 time_t mktimegm(struct tm *tm);
-int fls(int i);
+int qemu_fls(int i);
 
 #define qemu_isalnum(c)		isalnum((unsigned char)(c))
 #define qemu_isalpha(c)		isalpha((unsigned char)(c))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-11 19:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 19:37 [Qemu-devel] [5982] Rename fls to qemu_fls Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).