emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs on 64-bit architectures


From: Paul Eggert
Subject: Re: Emacs on 64-bit architectures
Date: Sun, 30 Sep 2001 07:50:03 -0700 (PDT)

> From: address@hidden (Pavel =?iso-8859-2?q?Jan=EDk?=)
> Date: Sun, 30 Sep 2001 12:12:45 +0200
> 
>   if (sizeof (int) == sizeof (EMACS_INT))
>     sprintf (buffer, "%d", XINT (number));
>   else if (sizeof (long) == sizeof (EMACS_INT))
>     sprintf (buffer, "%ld", (long) XINT (number));
> 
> This if()'s are executed very often, so I think it would be better to make
> this into #ifdef #elif #endif,

But the if-parts are constant, so they have zero execution cost.
Using #ifdef would make the code harder to read, and would not
catch syntax or semantic errors in the non-executed parts.

The other warnings that you mention look real to me.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]