Rs (255,253) coding C implementation