当前位置:网站首页>intXX_ T and int_ fastXX_ T what is the difference- What is the difference between intXX_ t and int_ fastXX_ t?
intXX_ T and int_ fastXX_ T what is the difference- What is the difference between intXX_ t and int_ fastXX_ t?
2022-06-11 02:59:00 【French red wine sweet】
problem :
I have recently discovered existence of standard fastest type, mainly int_fast32_t and int_fast64_t . I recently discovered the standard The fastest The existence of types , Mainly int_fast32_t and int_fast64_t .
I was always told that, for normal use on mainstream architecture, one should better use classical int & long which should always fit to the processor default reading capacity and so avoid useless numeric conversions. I'm always told , For normal use on mainstream architectures , Classic int and long , It should always fit the default read capacity of the processor , So as to avoid useless digital conversion .
In the C99 Standard, it says in §7.18.1.3p2 : stay C99 In the standard , It's in §7.18.1.3p2 In the said :
"The typedef name int_fastN_t designates the fastest signed integer type with a width of at least N. The typedef name uint_fastN_t designates the fastest unsigned integer type with a width of at least N."“typedef name int_fastN_t Specify a width of at least N The fastest signed integer type of .typedef name uint_fastN_t Specify a width of at least N The fastest unsigned integer type of .”
And there is also a quote about it in §7.18.1.3p1 : stay §7.18.1.3p1 There are also references to it in :
"The designated type is not guaranteed to be fastest for all purposes; if the implementation has no clear grounds for choosing one type over another, it will simply pick some integer type satisfying the signedness and width requirements."“ There is no guarantee that the specified type is the fastest for all purposes ; If the implementation has no clear reason to choose one type over the other , It will only select some integer types that meet the symbol and width requirements .”
It's unclear to me what fastest really means. I don't know One of the fastest What does it really mean .I do not understand when I should use this type and when I should not. I don't know when to use this type , When not to use .
I have googled a little on this and found that some opensourceprojects have changed some of their functions to it, but not all of them. I use Google Search on this point , Found some to open up Source code project Has changed some of their functions , But not everyone .They didn't really explain why they have changed a part, and only a part, of their code to it. They don't really explain why they have changed a part , and It's just Part of the , Their code .
Do you know what are the specific cases/usages when int_fastXX_t are really faster than the classical ones ? You know when int_fastXX_t Really? Faster than the classic / Usage is what Do you ?
Solution :
Reference resources : https://stackoom.com/en/question/cld8边栏推荐
- AOSP ~ modify default volume
- Baidu submits sitemap to prompt the solution of "index type is not handled"
- The two departments jointly issued the nine provisions on fire safety management of off campus training institutions
- OpenJudge NOI 1.13 18:Tomorrow never knows?
- 数据库唯一索引和普通索引的区别?
- Forest v1.5.22 release! Kotlin support
- AOSP ~ logcat chatty line expired
- RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器
- List 过滤、排序、校验等处理方法
- Openjudge noi 1.13 17: text layout
猜你喜欢
![[Fibonacci series]](/img/03/70b1363e91142a8600d97c59b01b0f.png)
[Fibonacci series]

怎样简洁明了地说清楚产品需求?

Baidu submits sitemap to prompt the solution of "index type is not handled"

Wechat applet

Uni app - one click access to user information

Looking at the ups and downs of the mobile phone accessories market from the green Union's sprint for IPO

How to state clearly and concisely the product requirements?

微信小程序

The new colleague asked me what "where 1=1" means???
![[MySQL 45 -10] Lesson 10 how MySQL selects indexes](/img/eb/dbde2852a89ece383266da1aeea862.jpg)
[MySQL 45 -10] Lesson 10 how MySQL selects indexes
随机推荐
近期学习和更新计划
CocosCreator原生二次开发的正确姿势
Android WiFi hide SSID configuration method
位置数据融合表3
. Net module and assembly - NET Module vs Assembly
同一个用户的两次请求SessionId竟然不一致-----记录问题
Question bank and answers for 2022 melting welding and thermal cutting operation certificate examination
Recent learning and update plan
Live broadcast! Feature matching of orb-slam3 series (mlpnp, word bag model, etc.).
数据库唯一索引和普通索引的区别?
UBIFS FAQ and HOWTO
How to fix syntax errors in WordPress websites
JS memory leak
Databinding escaping with presentation symbols
VMware虚拟机IP,网关设置。虚拟机ping不通外网
AOSP ~ WIFI默认开启 + GPS默认关闭 + 蓝牙默认关闭 + 旋转屏幕关闭
Openjudge noi 1.13 17: text layout
怎样简洁明了地说清楚产品需求?
完成千万元A轮融资,小象生活能否成为折扣界的“永辉”?
How to add two factor authentication for WordPress websites
