Keil™, An ARM® Company

Discussion Forum

make typedef a 64-bit unsigned

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Rick Bell Intel Corporation
Posted
1-Jul-2009 21:18 GMT
Toolset
C51
New! make typedef a 64-bit unsigned

I am trying to make typedef a 64-bit unsigned and getting error. How do I typedef 64-bit

typedef unsigned long long QWORD; // 64-bit unsigned

error C141: syntax error near 'long'

Read-Only
Author
Per Westermark
Posted
1-Jul-2009 22:19 GMT
Toolset
C51
New! RE: make typedef a 64-bit unsigned

Have a look at this link:
http://www.keil.com/support/docs/1677.htm

If you need a 64-bit integer, you will have to implement that logic yourself. Do you need full math support, or is it just for some kind of counter?

Next Thread | Thread List | Previous Thread Start a Thread | Settings