Messages in this thread | | | From | "Riley Williams" <> | Subject | Re: Interrupt doesn't make it to the 8259 on a ASUS P4PE mobo | Date | Sun, 20 Jul 2003 22:04:31 +0100 |
| |
Hi Alan.
>>>> Use HZ/2 instead. GCC doesn't optimize floating point constants >>>> to the same degree it does integers, because it doesn't know what >>>> mode (rounding, precision) the FPU is in.
>>> Isn't (HZ >> 1) better?
>> Same thing. GCC knows that division by a power of 2 is just a shift.
> Only for unsigned
When I did the "Assembler Language Maths Logic" module for my degree, we learned that processors used SRL (Shift Right Logical) to divide unsigned numbers by powers of 2, and SRA (Shift Right Arithmetic) to divide signed numbers by powers of 2. Can't GCC handle that?
Best wishes from Riley. --- * Nothing as pretty as a smile, nothing as ugly as a frown.
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 18-Jul-2003
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |