[libvirt] [PATCH] Add domain type checking
Eric Blake
eblake at redhat.com
Mon Jul 11 23:30:35 UTC 2011
On 07/11/2011 03:32 PM, Eric Blake wrote:
>>>> +#include <math.h>
>>>
>>> What was this needed for?
>>
>> For log2 to convert 1 << x back to x in case only one bit is set in
>> expectedVirtTypes.
>
> log2(), including -lm, is rather heavyweight. It should be possible to
> use ffs() from <strings.h> to do the same thing, and then we don't have
> to worry about dragging in -lm.
>
> I'll work up a patch tomorrow, if no one beats me to it tonight.
Done:
https://www.redhat.com/archives/libvir-list/2011-July/msg00598.html
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110711/b65a6b91/attachment-0001.sig>
More information about the libvir-list
mailing list