lua-users home
lua-l archive

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


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?

  -spc