[Top][All Lists]
[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
- intro, xystrus, 2002/03/12
- Re: intro,
Sergey Poznyakoff <=
- Re: intro, Alain Magloire, 2002/03/13
- Message not available
- Re: intro, xystrus, 2002/03/13
- Message not available
- mailbox (was Re: intro), xystrus, 2002/03/13
- Re: mailbox (was Re: intro), Alain Magloire, 2002/03/13
- Re: mailbox (was Re: intro), Jeff Bailey, 2002/03/13
- Re: mailbox (was Re: intro), Alain Magloire, 2002/03/13
- Re: mailbox (was Re: intro), Sergey Poznyakoff, 2002/03/13