Messages in this thread |  | | Date | Tue, 01 May 2001 14:06:41 -0700 | From | "H. Peter Anvin" <> | Subject | Re: iso9660 endianness cleanup patch |
| |
Linus Torvalds wrote: > > On Tue, 1 May 2001, H. Peter Anvin wrote: > > > > Oh bother, you're right of course. We need some kind of standardized > > macro for indirecting through a potentially unaligned pointer. > > No we don't - because it already exists. > > It's called "get_unaligned()". >
Well, we presumably do need it since it's there. I *did* correct this brain fault of mine a few hours ago.
Note that it might still be an idea to have get_unaligned_le32() & co... on some machines le32_to_cpu(get_unaligned()) could potentially be a lot more painful than it needs to be.
-hpa
-- <hpa@transmeta.com> at work, <hpa@zytor.com> in private! "Unix gives you enough rope to shoot yourself in the foot." http://www.zytor.com/~hpa/puzzle.txt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |