netdev
[Top] [All Lists]

Re: ANK's PSCHED_TDIFF_SAFE change unmasked old bug (~0UL !=

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@xxxxxxxxxxxx> 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>