https://blog.csdn.net/qq_33195791/article/details/82431811

保证最终在程序中使用的类型的位数是一定;例如64位系统的long int是 8个字节(64位),那么在32位系统中,为了保持64位,需要一个long long int的类型;

即 

# if __WORDSIZE == 64  
typedef long int        int64_t;  
# else  
__extension__  
typedef long long int   int64_t;  
# endif

  

相关文章:

  • 2021-10-05
  • 2021-07-20
  • 2021-09-02
  • 2021-11-03
  • 2021-11-27
  • 2021-10-12
  • 2021-11-05
  • 2021-12-10
猜你喜欢
  • 2021-06-01
  • 2021-10-22
  • 2021-11-14
  • 2021-10-02
  • 2021-09-21
  • 2021-07-27
  • 2021-09-06
  • 2021-10-21
相关资源
相似解决方案