What is the difference between intXX_t and int_fastXX_t?

前端 未结 4 1691
挽巷
挽巷 2021-01-31 01:51

I have recently discovered existence of standard fastest type, mainly int_fast32_t and int_fast64_t.

I was always told that, for normal use on mainstream archit

4条回答
  •  一生所求
    2021-01-31 02:34

    Gnu libc defines {int,uint}_fast{16,32}_t as 64-bit when compiling for 64-bit CPUs and 32-bit otherwise. Operations on 64-bit integers are faster on Intel and AMD 64-bit x86 CPUs than the same operations on 32-bit integers.

提交回复
热议问题