While I was learning datatypes in c. I came across int_fast8_t and int_least8_t data types. I did not know these, So I have googled it. I have found some answers here:
The difference of int8_t, int_least8_t and int_fast8_t?
The answers are int_fast8_t is fastest but Iam surprised what things makes it fast. What techniques does compiler use to make it fast ? and also, When there exists int datatype and short,long modifiers to modify int size. What is the need of this (int_fast8_t) datatypes ?
If int_fast8_t is faster then we can simply ignore int and go for int_fast8_t always, since everyone needs speed.
Is there any limitations for int_fast8_t? What are the advantages or disadvantages between int_fast8_t and int.