what is the performance impact of using int64_t instead of int32_t on 32-bit systems?

后端 未结 4 1370
太阳男子
太阳男子 2020-12-07 22:30

Our C++ library currently uses time_t for storing time values. I\'m beginning to need sub-second precision in some places, so a larger data type will be necessary there anyw

4条回答
  •  情深已故
    2020-12-07 22:54

    Addition/subtraction basically becomes two cycles each, multiplication and division depend on the actual CPU. The general perfomance impact will be rather low.

    Note that Intel Core 2 supports EM64T.

提交回复
热议问题