/* This is in a tight loop, better inline it, so need to be prior to callers. (2000 bytes on P6 200MHz, non-inlined ~370us, inline ~170us) - Jean II  */
static int stuff_byte(__u8 byte, __u8 *buf)
/* This is in a tight loop, better inline it, so need to be prior to callers. (2000 bytes on P6 200MHz, non-inlined ~370us, inline ~170us) - Jean II  */
static int stuff_byte(__u8 byte, __u8 *buf)
{
	switch (byte) {
	case BOF:
	case EOF:
	case CE:
		buf[0] = CE;
		buf[1] = byte^IRDA_TRANS;
		return 2;
	default:
		buf[0] = byte;
		return 1;
	}
}