[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (rc1) now available
- From: Sean Conner <sean@...>
- Date: Fri, 25 Nov 2011 17:28:58 -0500
It was thus said that the Great Roberto Ierusalimschy once stated:
> All these options may result in sub-optimal code for some particular
> sizes of ptrdiff_t and int.
> Did you try this option?
> #define twoto(x) (int)(1<<(x))
Night not it be better as:
#define twoto(x) (1 << ((int)x))
Get x as a int first, then shift?