当前位置:网站首页>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边栏推荐
- Why did those who left Beijing, Shanghai and Guangzhou with a smile cry in the end?
- Location data fusion Table 3
- [MySQL 45 -10] Lesson 10 how MySQL selects indexes
- Graphacademy course explanation: Fundamentals of neo4j graph data science
- 反射三种方式
- Will your company choose to develop data center?
- 银行选择电子招标采购的必要性
- How to add cookie pop-up window in WordPress website (without plug-in)
- 剑指 Offer II 079. 所有子集
- [189. rotation array]
猜你喜欢

【冒泡排序的实现】

How to add cookie pop-up window in WordPress website (without plug-in)

Unity项目优化详解(持续补充ing)

How can Delma's own brand "take off" when Philips is listed on the market?

CPT 102_ LEC 16

巴歇尔槽流量计远程采集物联网关在明渠流量监测的应用

VMware虚拟机IP,网关设置。虚拟机ping不通外网

GraphAcademy 課程講解:《Neo4j 圖數據科學基礎》

Limiting visibility of symbols when linking shared libraries
![[implementation of bubble sorting]](/img/c9/5e4aa246c89fd03a184dbd00161f97.png)
[implementation of bubble sorting]
随机推荐
AOSP ~ WiFi on by default + GPS off by default + Bluetooth off by default + rotary screen off
How to use phpMyAdmin to optimize MySQL database
牛客网:数组中只出现一次的两个数字
HUST软件工程(实验2)--TDD测试驱动开发实验。
Go 语言的优势和学习路线图
helm 部署traefik ingress
Necessity for banks to choose electronic bidding procurement
Can Xiaoxiang life become the "Yonghui" in the discount industry after the completion of the round a financing of tens of millions of yuan?
Android WiFi hide SSID
UBIFS FAQ and HOWTO
Helm deploy traifik ingress
AOSP - Developer mode is enabled by default
If you understand the logic of mining and carbon neutrality, you will understand the 100 billion market of driverless mining areas
弄懂了采矿业与碳中和的逻辑,就读懂了矿区无人驾驶的千亿市场
CPT 102_LEC 13-14
jdbc工具类的问题
CPT 102_LEC 16
20220610 星期五
Live broadcast! Feature matching of orb-slam3 series (mlpnp, word bag model, etc.).
How to add two factor authentication for WordPress websites