[uClinux-dev] probelm with BIG numbers

Richard Klingler richard.klingler at violasystems.com
Wed Mar 5 10:37:22 EST 2003


> Hi,
> 
> some code here...
> 
> unsigned long long int foo = 83;
> printf("16: %llu", foo<<16);
> printf("24: %llu", foo<<24);
> printf("30: %llu", foo<<30);
> printf("32: %llu", foo<<32);
> 
> that results to:
> 16: 5439488
> 24: 1392508928
> 30: 3221225472
> 32: 0
> 

Do you have "HAS_LONG_LONG = true" in uClibc?


Rick


Richard Klingler             mail: richard.klingler at violasystems.com
Viola Systems Ltd.           http://www.violasystems.com/
Lemminkäisenkatu 32          phon: +358 (0)201 226 226
20520 Turku, Finland         mobile: +358 (0)40 748 4711



More information about the uClinux-dev mailing list