10 #define ROR(a,b) (((a) >> (b)) | ((a) << ((sizeof (a) * CHAR_BIT) - (b))))
11 #define ROL(a,b) (((a) << (b)) | ((a) >> ((sizeof (a) * CHAR_BIT) - (b))))
13 #define CHAR_VALUE ((char)0xf234)
14 #define SHORT_VALUE ((short)0xf234)
15 #define INT_VALUE ((int)0xf234)
16 #define LONG_VALUE ((long)0xf2345678L)
17 #define LL_VALUE ((long long)0xf2345678abcdef0LL)
20 #define SHIFT2 ((sizeof (long long) * CHAR_BIT) - SHIFT1)
23 short s
= SHORT_VALUE
;
26 long long ll
= LL_VALUE
;
33 if (ROR (c
, shift1
) != ROR (CHAR_VALUE
, SHIFT1
))
36 if (ROR (c
, SHIFT1
) != ROR (CHAR_VALUE
, SHIFT1
))
39 if (ROR (s
, shift1
) != ROR (SHORT_VALUE
, SHIFT1
))
42 if (ROR (s
, SHIFT1
) != ROR (SHORT_VALUE
, SHIFT1
))
45 if (ROR (i
, shift1
) != ROR (INT_VALUE
, SHIFT1
))
48 if (ROR (i
, SHIFT1
) != ROR (INT_VALUE
, SHIFT1
))
51 if (ROR (l
, shift1
) != ROR (LONG_VALUE
, SHIFT1
))
54 if (ROR (l
, SHIFT1
) != ROR (LONG_VALUE
, SHIFT1
))
57 if (ROR (ll
, shift1
) != ROR (LL_VALUE
, SHIFT1
))
60 if (ROR (ll
, SHIFT1
) != ROR (LL_VALUE
, SHIFT1
))
63 if (ROR (ll
, shift2
) != ROR (LL_VALUE
, SHIFT2
))
66 if (ROR (ll
, SHIFT2
) != ROR (LL_VALUE
, SHIFT2
))
69 if (ROL (c
, shift1
) != ROL (CHAR_VALUE
, SHIFT1
))
72 if (ROL (c
, SHIFT1
) != ROL (CHAR_VALUE
, SHIFT1
))
75 if (ROL (s
, shift1
) != ROL (SHORT_VALUE
, SHIFT1
))
78 if (ROL (s
, SHIFT1
) != ROL (SHORT_VALUE
, SHIFT1
))
81 if (ROL (i
, shift1
) != ROL (INT_VALUE
, SHIFT1
))
84 if (ROL (i
, SHIFT1
) != ROL (INT_VALUE
, SHIFT1
))
87 if (ROL (l
, shift1
) != ROL (LONG_VALUE
, SHIFT1
))
90 if (ROL (l
, SHIFT1
) != ROL (LONG_VALUE
, SHIFT1
))
93 if (ROL (ll
, shift1
) != ROL (LL_VALUE
, SHIFT1
))
96 if (ROL (ll
, SHIFT1
) != ROL (LL_VALUE
, SHIFT1
))
99 if (ROL (ll
, shift2
) != ROL (LL_VALUE
, SHIFT2
))
102 if (ROL (ll
, SHIFT2
) != ROL (LL_VALUE
, SHIFT2
))