Messages in this thread | | | From | (Alan Cox) | Subject | Re: Volatile magic | Date | Sat, 24 Jan 1998 01:52:58 +0000 (GMT) |
| |
> Patch to scheduler is attached, it kills comment duplication, and adds > one volatile, which is IMO needed.
Nope. It isnt needed. The case in asm/i386 is a special case where gcc optimisation outwits a clever misuse of the gcc calling convention
> Please note that if you want to know if long is 64bit, #if ((~0UL) == > 0xffffffff) is not good way - what about crosscompiling? I already
It is the right way to do it if your cross C pre-processor is decent. If your native and cross build compilers generate different output you have a MAJOR bug. So cpp should (and I think does) evaluate maths in the targets maths format.
Alan
| |