home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,158 of 243,242   
   David Brown to Keith Thompson   
   Re: _BitInt(N)   
   26 Nov 25 13:24:26   
   
   From: david.brown@hesbynett.no   
      
   On 25/11/2025 22:42, Keith Thompson wrote:   
   > David Brown  writes:   
   > [...]   
   >> But the _BitInt version is definitely neater.  I can see myself using   
   >> _BitInt(12) and similar sizes for things like values read from   
   >> hardware sensors of different resolutions.   
   >>   
   >> (The code for all three is the same with gcc on x86 or arm64 -   
   >> unfortunately, gcc does not yet support _BitInt on many targets.)   
   > [...]   
   >   
   > Is support for _BitInt limited by target or by version?   
   >   
      
   Both - I expect it to be implemented for more targets in later versions :-)   
      
   > It looks like _BitInt support was introduced in gcc 14.1.0.  You might   
   > have older versions of gcc on other platforms.   
   >   
      
   It was added to x86 and AArch64 targets in gcc 14.  It is not supported   
   on any other targets as yet, as far as I know.  Presumably it will come   
   when someone has done the work for the backends.  (Some of such   
   implementations are target-independent, but some are backend specific.)   
   Generally, x86-64 and AArch64 are the targets that get the most focus   
   and support from the big companies, which 32-bit ARM, MIPS, PowerPC,   
   etc., can often be a little slower due to fewer resources.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca