blob: 066637bcca65291454755f86d01c596a4ced67a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#define U(a) ((unsigned char)(a))
#define twiddle(n) (( \
(U(n)<=9)? ((n)+161): \
(U(n)<=32? ((n)+163): \
(U(n) == 127? 196: (n)))))
#define untwiddle(n) (( \
((U(n)>=161 && (U(n))<=170)? ((n)-161): \
((U(n)>=173 && (U(n))<=195)? ((n)-163): \
(U(n) == 196? 127: (n))))))
|