view test/const.c @ 384:5fc059f1947d

ARM continue...
author kono
date Wed, 21 Jul 2004 13:52:13 +0900
parents a9bc85fe6702
children 33a09aa401ba
line wrap: on
line source

main()
{
    int i;
    i = 0x0f0f0ff;
    printf("%x\n",i);
    i = 0x0f0f0ff<<1;
    printf("%x\n",i);

i = 0x555<<0; printf("%x\n",i);
i = 0x555<<1; printf("%x\n",i);
i = 0x555<<2; printf("%x\n",i);
i = 0x555<<3; printf("%x\n",i);
i = 0x555<<4; printf("%x\n",i);
i = 0x555<<5; printf("%x\n",i);
i = 0x555<<6; printf("%x\n",i);
i = 0x555<<7; printf("%x\n",i);
i = 0x555<<8; printf("%x\n",i);
i = 0x555<<9; printf("%x\n",i);
i = 0x555<<10; printf("%x\n",i);
i = 0x555<<11; printf("%x\n",i);
i = 0x555<<12; printf("%x\n",i);
i = 0x555<<13; printf("%x\n",i);
i = 0x555<<14; printf("%x\n",i);
i = 0x555<<15; printf("%x\n",i);
i = 0x555<<16; printf("%x\n",i);
i = 0x555<<17; printf("%x\n",i);
i = 0x555<<18; printf("%x\n",i);
i = 0x555<<19; printf("%x\n",i);
i = 0x555<<20; printf("%x\n",i);
i = 0x555<<21; printf("%x\n",i);
i = 0x555<<22; printf("%x\n",i);
i = 0x555<<23; printf("%x\n",i);
i = 0x555<<24; printf("%x\n",i);
i = 0x555<<25; printf("%x\n",i);
i = 0x555<<26; printf("%x\n",i);
i = 0x555<<27; printf("%x\n",i);
i = 0x555<<28; printf("%x\n",i);
i = 0x555<<29; printf("%x\n",i);
i = 0x555<<30; printf("%x\n",i);
i = 0x555<<31; printf("%x\n",i);

i = 1; printf("%x\n",i);
i = 3; printf("%x\n",i);
i = 7; printf("%x\n",i);
i = 15; printf("%x\n",i);
i = 31; printf("%x\n",i);
i = 63; printf("%x\n",i);
i = 127; printf("%x\n",i);
i = 255; printf("%x\n",i);
i = 511; printf("%x\n",i);
i = 1023; printf("%x\n",i);
i = 2047; printf("%x\n",i);
i = 4095; printf("%x\n",i);
i = 8191; printf("%x\n",i);
i = 16383; printf("%x\n",i);
i = 32767; printf("%x\n",i);
i = 65535; printf("%x\n",i);
i = 131071; printf("%x\n",i);
i = 262143; printf("%x\n",i);
i = 524287; printf("%x\n",i);
i = 1048575; printf("%x\n",i);
i = 2097151; printf("%x\n",i);
i = 4194303; printf("%x\n",i);
i = 8388607; printf("%x\n",i);
i = 16777215; printf("%x\n",i);
i = 33554431; printf("%x\n",i);
i = 67108863; printf("%x\n",i);
i = 134217727; printf("%x\n",i);
i = 268435455; printf("%x\n",i);
i = 536870911; printf("%x\n",i);
i = 1073741823; printf("%x\n",i);
i = 2147483647; printf("%x\n",i);
i = 4294967295; printf("%x\n",i);

}