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

2016-11-30 Thread Georg-Johann Lay
On 30.11.2016 15:32, Paul "LeoNerd" Evans wrote: On Wed, 30 Nov 2016 18:18:11 +0530 Senthil Kumar Selvaraj 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

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

2016-11-30 Thread Diogo Martins Silva
Thanks, guys. I asked because I tried a code snippet, but was getting errors. I found later that the errors came from my IDE's code analysis, not the compiler. The code works fine. Thumbs up for the assembly examples! Diogo On Wed, 2016-11-30 at 14:14 +0100, Georg-Johann Lay wrote: > On

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

2016-11-30 Thread Paul "LeoNerd" Evans
On Wed, 30 Nov 2016 18:18:11 +0530 Senthil Kumar Selvaraj 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? > >

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

2016-11-30 Thread David Kelly
On Nov 30, 2016, at 8:32 AM, Paul LeoNerd Evans wrote: > Is it possible to get that added to as the expected names > > int24_t > uint24_t I am opposed because 24 is not a standard int. stdint.h standardizes types across compilers. -- David Kelly N4HHE,

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

2016-11-30 Thread MortenEngelhardt.Olsen
Extensions => Types => Signed and unsigned 24-bit integers: __int24 (4.7), __uint24 (4.7). int main(void) { volatile __uint24 a = 0; } Gives volatile __uint24 a = 0; 58: 19 82 std Y+1, r1 ; 0x01 5a: 1a 82 std Y+2, r1 ; 0x02 5c: 1b 82 std