Why is uint_least16_t faster than uint_fast16_t for multiplication in x86_64?

前端 未结 5 1667
醉梦人生
醉梦人生 2021-01-11 14:28

The C standard is quite unclear about the uint_fast*_t family of types. On a gcc-4.4.4 linux x86_64 system, the types uint_fast16_t and uint_

5条回答
  •  臣服心动
    2021-01-11 14:36

    Yes, I think this is simply a mistake. Unfortunately you can't just go fixing mistakes like this without breaking the ABI, but it may not matter since virtually nobody (and certainly no library functions I know of) actually uses the *int_fast*_t types.

提交回复
热议问题