| To: | devik@xxxxxx (Martin Devera) |
|---|---|
| Subject: | Re: ANK's PSCHED_TDIFF_SAFE change unmasked old bug (~0UL != |
| From: | kuznet@xxxxxxxxxxxxx |
| Date: | Thu, 16 May 2002 21:08:01 +0400 (MSD) |
| Cc: | davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <Pine.LNX.4.44.0205161723230.12674-100000@luxik.cdi.cz> from "Martin Devera" at May 16, 2 05:25:06 pm |
| Sender: | owner-netdev@xxxxxxxxxxx |
Hello! > and the HOST_WIDEST_INT is used for all arithmetic in CPP. This is not answer to the question. This behaviour was proven experimentally. :-) One question is _why_. Why the rules are so drastically different between C and CPP? C in CPP stands for C eventually. I can guess that this was caused by some problems with cross compiling 64bit <-> 32 bit, but I still do not understand why the fix was so strange. Another question is that this does not matter. UL is an explicit type specifier. In the experession there is no place for ambiguity at least from viewpoint of C. Apparently, before doing such strong change of rules it was discussed among gcc people. It would be intersting to know how it was motivated. Alexey |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RFC2292(bis) checksum support, YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | Re: netdev, netdev |
| Previous by Thread: | Re: ANK's PSCHED_TDIFF_SAFE change unmasked old bug (~0UL != 0xFFFFFFFF), Martin Devera |
| Next by Thread: | PSCHED_GET_TIME related bug: jiffies wraparound, Martin Devera |
| Indexes: | [Date] [Thread] [Top] [All Lists] |