> In this case I would just accommodate the compiler:
>
> /* include/asm-i386/string.h */
> switch (n % 4) {
> case 0: COMMON(""); break;
> case 1: COMMON("\n\tmovsb"); break;
> case 2: COMMON("\n\tmovsw"); break;
> case 3: COMMON("\n\tmovsw\n\tmovsb"); break;
> }
> return to;
But then you add all those extra jmp's inline...
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian