Back to index

tetex-bin  3.0
twiddle.h
Go to the documentation of this file.
00001 #define U(a) ((unsigned char)(a))
00002 #define twiddle(n) (( \
00003      (U(n)<=9)? ((n)+161): \
00004      (U(n)<=32? ((n)+163): \
00005      (U(n) == 127? 196: (n)))))
00006 
00007 #define untwiddle(n) (( \
00008      ((U(n)>=161 && (U(n))<=170)? ((n)-161): \
00009      ((U(n)>=173 && (U(n))<=195)? ((n)-163): \
00010      (U(n) == 196? 127: (n))))))
00011