当前位置:网站首页>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边栏推荐
- 那些笑着离开“北上广”的人,为何最后都哭了?
- [interview question 17.04. missing numbers]
- HUST Software Engineering (Experiment 2) -- TDD test driven development experiment.
- Cmake common commands
- Niuke: two numbers that only appear once in the array
- [MySQL 45 lecture -12] lecture 12 the reason why MySQL has a wind attack from time to time
- [resolved] how to fix another update in progress WordPress upgrade error
- 深入解析问号表达式
- AOSP - Developer mode is enabled by default
- 判断一串数字是否是快速排序某一次的结果
猜你喜欢
![[C language classic]: inverted string](/img/f3/e6f37b852d22d395314628b73c9be3.jpg)
[C language classic]: inverted string

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

CPT 102_ LEC 15

靠贴牌飞利浦冲击上市,德尔玛的自有品牌又该如何“起跳”?

Learning Tai Chi Maker - esp8226 (II)

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

helm 部署traefik ingress

完成千万元A轮融资,小象生活能否成为折扣界的“永辉”?

CPT 102_LEC 17

Android P SoftAP start process
随机推荐
WordPress article directory plug-in luckywp table of contents setup tutorial
Uni app - one click access to user information
TCP/IP
The two departments jointly issued the nine provisions on fire safety management of off campus training institutions
[C language classic]: inverted string
Openjudge noi 1.13 17: text layout
完成千万元A轮融资,小象生活能否成为折扣界的“永辉”?
Problèmes de classe d'outils JDBC
HUST Software Engineering (Experiment 2) -- TDD test driven development experiment.
Arduino uses nRF24L01 module for wireless communication
6 best WordPress Image optimizer plug-ins to improve WordPress website performance
20220610 Friday
RS232/RS485转4G DTU 上传基于Modbus协议的温湿度传感器数据到远程TCP服务器
Google Gmail mailbox marks all unread messages as read at once
error exepected identifier before ‘(‘ token, grpc 枚举类编译错误
逃离大城市的年轻人:扛住了房价和压力,没扛住流行病
Android WiFi hide SSID
jdbc工具類的問題
靠贴牌飞利浦冲击上市,德尔玛的自有品牌又该如何“起跳”?
Limiting visibility of symbols when linking shared libraries
