473,408 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

What is the formal statutus of uint64_t

This is the question about what the statndard of C++ says.
Unfortunately I don't have access to the standard, so I
decided to ask here.

Is the type uint64_t accepted by the current standard?
If not, is it expected for the incomming version?

If this is the case, does the standard says how to enter
uint64_t constants espacially if it happens that uint64_t
is strictly bigger than unsigned long?

BTW. I checked that on gcc uint64_t is accepted and the
constants can be enetered with postfix ull, but at least
this later thing I doubt to be in the standard, since
long long is not.

TIA,
Przemek

Aug 23 '08 #1
1 6127
Przemyslaw Koprowski wrote:
This is the question about what the statndard of C++ says.
Unfortunately I don't have access to the standard, so I
decided to ask here.

Is the type uint64_t accepted by the current standard?
No.
If not, is it expected for the incomming version?
Yes.
>
If this is the case, does the standard says how to enter
uint64_t constants espacially if it happens that uint64_t
is strictly bigger than unsigned long?
A literal is already considered to be of a type large enough to store
its value, and convertible to any wider type.
>
BTW. I checked that on gcc uint64_t is accepted and the
constants can be enetered with postfix ull, but at least
this later thing I doubt to be in the standard, since
long long is not.
C++0x will have a long long type, as well as ull. The long long type
must be at least 64 bits, but can of course be wider on some systems.
Bo Persson
Aug 23 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Amir Michail | last post by:
Hi, I was wondering if there is a tool that will perform some heuristic checking of actual and formal parameters to warn about likely errors. Such a tool could check that formal and actual...
1
by: Jhy-Chun Wang | last post by:
Hi, I have a c++ extension that does thing like: extern "C" static PyObject * nasUtil_access_cmd(PyObject *self, PyObject *args) { uint64_t paddr; uint64_t data;
4
by: Richard Cavell | last post by:
uint64_t i64_BitMask = (uint64_t) (1 << 33) - 1 ; int a = (i64_BitMask >> 32); printf ("BitMask %x\n", a); This produces ffffffff. I'm pretty sure, watching the stages in debugging, that 1 <<...
10
by: ben | last post by:
is there anyway in c to write code that can variably make use of one of two structs (one that has 32 bit vals and the other that has 64 bit vals) throughout the code? i'm writing some code that...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
2
by: Yong.D | last post by:
For example: uint64_t TX_TAST = 0x0000000400000000; Can I use it? Best Yong.D
14
by: =?ISO-8859-1?Q?S=E9bastien_de_Mapias?= | last post by:
Hello, Hopefully I'm asking my question on the proper forum, but it's some kind of low-level computer language issue and I guess here, many people are likely to give me fine enlightenments (and I...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.