Mail Archives: djgpp-workers/2001/02/04/03:00:14
On Sun, 4 Feb 2001, Laurynas Biveinis wrote:
> > +typedef signed char int_fast8_t;
> > +typedef unsigned char uint_fast8_t;
>
> Unless I am severely mistaken:
>
> If fast_t types are supposed to be the fastest ones
> for a given size, maybe it's better to use int?
Thanks for the feedback.
However, I didn't find any evidence that an int is faster than a char.
Can you provide such an evidence, e.g., by looking at the code produced
by gcc 2.9X and counting cycles?
FWIW, glibc also uses char for *_fast8_t types.
> > +typedef signed int int_fast16_t;
> > +typedef unsigned int uint_fast16_t;
>
> Likewise there.
Well, these _are_ 32-bit int's, aren't they? ;-)
- Raw text -