>>338
#define diff(x, y) (((x)<(y))?(y)-(x):(x)-(y))
では?