but wonder whether the same does hold for MIPS/ARM. Getting it wrong
there will lead to some very very poor performing code.

1) do - as already pointed out - standard copy of structure in C.
2) if compiler is found to generate bad code on some archs put assembly.

1 even if compiler is not smart is already far better than calling a function to copy 6 bytes that is plain stupid.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to