[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JFFS2 endianness.

I think Nico has it exactly right:

The byte swapping gets lost on modern processors in the initial cache
miss to load the data (if the code is good).

Worry about installed base (of removable media), and use that as your guide.

The other attitude is what we did in X, where the core protocol
does "server makes it right", and byte swaps appropriately if needed.
This isn't much of the overall code, if done well, and guarantees
no overhead in the common "on machine" case.  It just isn't very hard
at all... :-).
				- Jim

Jim Gettys
Cambridge Research Laboratory
Compaq Computer Corporation

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com