Go to the documentation of this file.
15 #define SHIFT(expr) do {int i=(expr);unsigned u=(expr);printf("%20s => 0x%08x %11d\n", #expr, u, i);}while(0)
20 printf(
"%20s => 0x%%08x %%10d prvni je unsigned hexa vypis, druhy signed decimal\n",
"shift vyraz");
28 SHIFT(0x0000ffffU<<8);
29 SHIFT(0x00ffffffU<<8);
30 SHIFT(0x7fffffffU<<8);
38 SHIFT(0x80000000 >>1);
39 SHIFT(0x80000000U>>1);