avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] 24 bits (u)ints


From: Paul \"LeoNerd\" Evans
Subject: Re: [avr-gcc-list] 24 bits (u)ints
Date: Wed, 30 Nov 2016 14:32:33 +0000

On Wed, 30 Nov 2016 18:18:11 +0530
Senthil Kumar Selvaraj <address@hidden> wrote:

> Diogo Martins Silva writes:
> 
> > Hello all.
> >
> > The avr-gcc wiki (https://gcc.gnu.org/wiki/avr-gcc) lists 24 bits
> > (u)ints as an extension since version 4.7. How do I use them?  
> 
> Use __uint24 as the type. Like so
> 
> $ cat test.c
> volatile __uint24 x;
> int main() { 
>   x++;
>   x--;
> }

Is it possible to get that added to <stdint.h> as the expected names

  int24_t
  uint24_t

?

-- 
Paul "LeoNerd" Evans

address@hidden      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Attachment: pgpMJq4ffliWO.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]