/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / long long int in RIDE7?

Username:     
Password:     
             

Forum

# 1   2010-12-12 06:39:35 long long int in RIDE7?

cyberjd
New member
Registered: 2010-05-28
Posts: 2

long long int in RIDE7?

Hello everybody
I try a short program on Primer2...

Why are the declatations long long int only evaluated as long int?


long long int a64=4581298449LL;      //         0x111111111    33bits
long long int b64=9162596898LL;      //         0x222222222    33bits
long long int c64;

c64 = a64 + b64;

The debugger gives:

a64 is 0x11111111 (only 32 bits)
b64 is 0x22222222 (only 32 bits)
and the result is 0x33333333 (only 32 bits)

Thank you for your help

Offline

 

# 2   2010-12-15 15:27:56 long long int in RIDE7?

cyberjd
New member
Registered: 2010-05-28
Posts: 2

Re: long long int in RIDE7?

Nobody is interrested by 64 bits arithmetic in C ?!!!

Offline

 

Board footer