7 #define ROR(a,b) (((a) >> (b)) | ((a) << ((sizeof (a) * CHAR_BIT) - (b))))
8 #define ROL(a,b) (((a) << (b)) | ((a) >> ((sizeof (a) * CHAR_BIT) - (b))))
10 #define CHAR_VALUE ((char)0xf234)
11 #define SHORT_VALUE ((short)0xf234)
12 #define INT_VALUE ((int)0xf234)
13 #define LONG_VALUE ((long)0xf2345678L)
14 #define LL_VALUE ((long long)0xf2345678abcdef0LL)
17 #define SHIFT2 ((sizeof (long long) * CHAR_BIT) - SHIFT1)
20 short s
= SHORT_VALUE
;
23 long long ll
= LL_VALUE
;
29 if (ROR (c
, shift1
) != ROR (CHAR_VALUE
, SHIFT1
))
32 if (ROR (c
, SHIFT1
) != ROR (CHAR_VALUE
, SHIFT1
))
35 if (ROR (s
, shift1
) != ROR (SHORT_VALUE
, SHIFT1
))
38 if (ROR (s
, SHIFT1
) != ROR (SHORT_VALUE
, SHIFT1
))
41 if (ROR (i
, shift1
) != ROR (INT_VALUE
, SHIFT1
))
44 if (ROR (i
, SHIFT1
) != ROR (INT_VALUE
, SHIFT1
))
47 if (ROR (l
, shift1
) != ROR (LONG_VALUE
, SHIFT1
))
50 if (ROR (l
, SHIFT1
) != ROR (LONG_VALUE
, SHIFT1
))
53 if (ROR (ll
, shift1
) != ROR (LL_VALUE
, SHIFT1
))
56 if (ROR (ll
, SHIFT1
) != ROR (LL_VALUE
, SHIFT1
))
59 if (ROR (ll
, shift2
) != ROR (LL_VALUE
, SHIFT2
))
62 if (ROR (ll
, SHIFT2
) != ROR (LL_VALUE
, SHIFT2
))
65 if (ROL (c
, shift1
) != ROL (CHAR_VALUE
, SHIFT1
))
68 if (ROL (c
, SHIFT1
) != ROL (CHAR_VALUE
, SHIFT1
))
71 if (ROL (s
, shift1
) != ROL (SHORT_VALUE
, SHIFT1
))
74 if (ROL (s
, SHIFT1
) != ROL (SHORT_VALUE
, SHIFT1
))
77 if (ROL (i
, shift1
) != ROL (INT_VALUE
, SHIFT1
))
80 if (ROL (i
, SHIFT1
) != ROL (INT_VALUE
, SHIFT1
))
83 if (ROL (l
, shift1
) != ROL (LONG_VALUE
, SHIFT1
))
86 if (ROL (l
, SHIFT1
) != ROL (LONG_VALUE
, SHIFT1
))
89 if (ROL (ll
, shift1
) != ROL (LL_VALUE
, SHIFT1
))
92 if (ROL (ll
, SHIFT1
) != ROL (LL_VALUE
, SHIFT1
))
95 if (ROL (ll
, shift2
) != ROL (LL_VALUE
, SHIFT2
))
98 if (ROL (ll
, SHIFT2
) != ROL (LL_VALUE
, SHIFT2
))