C++ - the fastest integer type?

前端 未结 5 1027
不思量自难忘°
不思量自难忘° 2021-02-09 14:00

I\'ve being benchmarking an algorithm, it\'s not necessary to know the details. The main components are a buffer(raw array of integers) and an indexer (integer - used to access

5条回答
  •  既然无缘
    2021-02-09 14:10

    The following are typedefs of fundamental integral types or extended integral types.

    check fast mod. you can find out for other types(char) fast mod as well.

    library is :: cstdint

    uint_fast8_t :: my suggestion

    http://www.cplusplus.com/reference/cstdint/

    ??you may need to know about the architecture of machine you are using!!

提交回复
热议问题