bug-mailutils
[Top][All Lists]
Advanced

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

Re: intro


From: Sergey Poznyakoff
Subject: Re: intro
Date: Tue, 12 Mar 2002 12:04:42 +0200

> For example, here's a snippet of code from imap4d.h that defines
> macros for the various IMAP states:
[..snip..]
>  #define STATE_LOGOUT    (1 << 3)
>
> I'm curious why these were defined this way...  It strikes me as
> a little inefficient.  Each time these are used, they are replaced
> with a bit-shift calculation

No, they are not. The compiler computes all immediate constants
on early stages of parse tree handling. It was described in K&R,
though I don't have the book right at hand to cite it :^)

Regards,
Sergey






reply via email to

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