Re: [PATCH] lib/vsprintf.c: Add %pMF to format FDDI bit reversedMAC addresses

From: Joe Perches
Date: Thu Jan 07 2010 - 16:36:22 EST


On Thu, 2010-01-07 at 22:18 +0100, MichaÅ MirosÅaw wrote:
> Something like the following might be smaller and faster - no
> functions and their calls
> int rev = (fmt[1] == 'F');
> p = pack_hex_byte(p, rev ? bitrev8(addr[i]) : addr[i]);

Right, better. Just 6 bytes (x86). Resubmitting.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/