[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [5465] hw/apic.c: use __builtin funtions instead of ass
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [5465] hw/apic.c: use __builtin funtions instead of assembly code |
Date: |
Sun, 12 Oct 2008 20:17:08 +0100 |
User-agent: |
KMail/1.9.9 |
On Sunday 12 October 2008, Aurelien Jarno wrote:
> static int fls_bit(uint32_t value)
> {
> +#if defined(__GNUC__)
> + return 31 - __builtin_clz(value);
This should be using clz32, not duplicating this code.
Paul