Non-standard int types - how to define

Post a reply


This question is a means of preventing automated form submissions by spambots.

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is OFF
Smilies are OFF

Topic review
   

Expand view Topic review: Non-standard int types - how to define

Re: Non-standard int types - how to define

by jbezem » Tue Sep 29, 2020 6:47 am

I think your best option is to make Lint believe it is 32 bits wide, by declaring
+d__int24="int32_t"
+d__uint24="uint32_t"
(Assuming you have those types, otherwise use the appropriate types on your machine.)

Also look at section 14.6 if the sizeof operator is used in preprocessor conditionals. You may want something like
-pp_sizeof(__int24, 3)

--Johan

Non-standard int types - how to define

by JWalker » Sat Nov 17, 2018 2:11 pm

Hello,

My compiler implements non-standard int types: __int24 and __uint24. These types represent 24-bit values. What is the way to define such types?

Ivan

Top